# Use case 3: Level2 PSP Client Payment

PSP2 initiates the payments of the end customer (PSP2’s clients) via PSP1. In this case there is another Payment Service Provider (PSP2) between the PSP1 and the end customer (PSP2’s client). See the PDF for more details on the flow.

{% file src="<https://2266620947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHGywduAxJuxV3reZhASh%2Fuploads%2FCV3c9ecxl0ha1sP7ZSuK%2FUse%20case%203%20Level2%20PSP%20Client%20Payment.pdf?alt=media&token=8beb94f4-4b91-4293-baca-0f2b2beb9cdb>" %}

{% tabs %}
{% tab title="Payment Request" %}
Pain.001.001.09 sent using `POST` <https://connect.lhv.com/payment&#x20>;

{% code overflow="wrap" %}

```xml
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09"
    xmlns:ext="urn:iso:std:iso:20022:tech:xsd:supl.001.001.01"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09 ../../XSD/pain.001.001.09.xsd
                        urn:iso:std:iso:20022:tech:xsd:supl.001.001.01 ../../XSD/supl.001.001.01.xsd">
    <CstmrCdtTrfInitn>
        <GrpHdr>
            <MsgId>LHV-20250916T143012Z-001</MsgId>
            <CreDtTm>2025-09-16T13:22:47Z</CreDtTm>
            <NbOfTxs>1</NbOfTxs>
            <CtrlSum>0.03</CtrlSum>
            <InitgPty>
                <Id>
                    <OrgId>
                        <AnyBIC>PSP2CCCCXXX</AnyBIC>
                    </OrgId>
                </Id>
            </InitgPty>
            <FwdgAgt>
                <FinInstnId>
                    <BICFI>PSP1CCCCXXX</BICFI>
                </FinInstnId>
            </FwdgAgt>
        </GrpHdr>
        <PmtInf>
            <PmtInfId>PmtInfId160920251</PmtInfId>
            <PmtMtd>TRF</PmtMtd>
            <BtchBookg>false</BtchBookg>
            <NbOfTxs>1</NbOfTxs>
            <CtrlSum>0.03</CtrlSum>
            <ReqdExctnDt>
                <Dt>2025-09-16</Dt>
            </ReqdExctnDt>
            <Dbtr>
                <Nm>Connect Demo Customer 1</Nm>
                <PstlAdr>
                    <StrtNm>Angel Ct</StrtNm>
                    <BldgNb>1</BldgNb>
                    <PstCd>EC2R7HJ</PstCd>
                    <TwnNm>London</TwnNm>
                    <Ctry>GB</Ctry>
                </PstlAdr>
                <Id>
                    <OrgId>
                        <LEI>2138UEF2191L7RQF5U40</LEI>
                    </OrgId>
                </Id>
            </Dbtr>
            <DbtrAcct>
                <Id>
                    <IBAN>GB31LHVB04031300004649</IBAN>
                </Id>
            </DbtrAcct>
            <DbtrAgt>
                <FinInstnId>
                    <BICFI>LHVBGB2LXXX</BICFI>
                </FinInstnId>
            </DbtrAgt>
            <UltmtDbtr>
                <Nm>Customer of PSP2</Nm>
                <PstlAdr>
                    <StrtNm>High Street</StrtNm>
                    <BldgNb>42</BldgNb>
                    <PstCd>W1D 3QF</PstCd>
                    <TwnNm>London</TwnNm>
                    <Ctry>GB</Ctry>
                </PstlAdr>
                <Id>
                    <OrgId>
                        <Othr>
                            <Id>12345678</Id>
                            <SchmeNm>
                                <Cd>COID</Cd>
                            </SchmeNm>
                        </Othr>
                    </OrgId>
                </Id>
            </UltmtDbtr>
            <CdtTrfTxInf>
                <PmtId>
                    <InstrId>InstrId160920251</InstrId>
                    <EndToEndId>EndToEndId160920251</EndToEndId>
                </PmtId>
                <PmtTpInf>
                    <SvcLvl>
                        <Prtry>ALL</Prtry>
                    </SvcLvl>
                </PmtTpInf>
                <Amt>
                    <InstdAmt Ccy="GBP">0.03</InstdAmt>
                </Amt>
                <Cdtr>
                    <Nm>Minerva McGonagall</Nm>
                    <PstlAdr>
                        <StrtNm>Threadneedle Street</StrtNm>
                        <BldgNb>1</BldgNb>
                        <PstCd>EC2R8AH</PstCd>
                        <TwnNm>London</TwnNm>
                        <Ctry>GB</Ctry>
                    </PstlAdr>
                </Cdtr>
                <CdtrAcct>
                    <Id>
                        <Othr>
                            <Id>20201755555555</Id>
                            <SchmeNm>
                                <Cd>BBAN</Cd>
                            </SchmeNm>
                        </Othr>
                    </Id>
                </CdtrAcct>
                <RmtInf>
                    <Strd>
                        <CdtrRefInf>
                            <Tp>
                                <CdOrPrtry>
                                    <Cd>SCOR</Cd>
                                </CdOrPrtry>
                            </Tp>
                            <Ref>PAY-INV-20250916</Ref>
                        </CdtrRefInf>
                    </Strd>
                </RmtInf>
                <SplmtryData>
                    <Envlp>
                        <ext:Document>
                            <ext:partyData>
                                <ext:party>ULTIMATE_DEBTOR</ext:party>
                                <ext:key>DATE_OF_BIRTH</ext:key>
                                <ext:value>1980-09-24</ext:value>
                            </ext:partyData>
                        </ext:Document>
                    </Envlp>
                </SplmtryData>
            </CdtTrfTxInf>
        </PmtInf>
    </CstmrCdtTrfInitn>
</Document>
```

{% endcode %}
{% endtab %}

{% tab title="Payment Response 1" %}
Initial pain.002.001.10 with Accepted Settlement in Process (ACSP) status

{% code overflow="wrap" %}

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.002.001.10">
  <CstmrPmtStsRpt>
    <GrpHdr>
      <MsgId>1000224882</MsgId>
      <CreDtTm>2025-09-16T09:18:13.620+01:00</CreDtTm>
      <InitgPty>
        <Id>
          <OrgId>
            <AnyBIC>LHVBGB2LXXX</AnyBIC>
          </OrgId>
        </Id>
      </InitgPty>
    </GrpHdr>
    <OrgnlGrpInfAndSts>
      <OrgnlMsgId>LHV-20250916T143012Z-001</OrgnlMsgId>
      <OrgnlMsgNmId>pain.001.001.09</OrgnlMsgNmId>
      <GrpSts>ACSP</GrpSts>
    </OrgnlGrpInfAndSts>
    <OrgnlPmtInfAndSts>
      <OrgnlPmtInfId>PmtInfId160920251</OrgnlPmtInfId>
      <PmtInfSts>ACSP</PmtInfSts>
      <TxInfAndSts>
        <OrgnlInstrId>InstrId160920251</OrgnlInstrId>
        <TxSts>ACSP</TxSts>
        <AcctSvcrRef>83C4A0BB41CD4C5BA223A3BFDAF7EA6B</AcctSvcrRef>
        <OrgnlTxRef>
          <Amt>
            <InstdAmt Ccy="GBP">0.03</InstdAmt>
          </Amt>
          <ReqdExctnDt>
            <Dt>2025-09-16</Dt>
          </ReqdExctnDt>
          <PmtTpInf>
            <SvcLvl>
              <Prtry>FAST</Prtry>
            </SvcLvl>
          </PmtTpInf>
          <Dbtr>
            <Pty>
              <Nm>Connect Demo Customer 1</Nm>
            </Pty>
          </Dbtr>
          <DbtrAcct>
            <Id>
              <IBAN>GB31LHVB04031300004649</IBAN>
            </Id>
          </DbtrAcct>
          <DbtrAgt>
            <FinInstnId>
              <BICFI>LHVBGB2L</BICFI>
            </FinInstnId>
          </DbtrAgt>
          <CdtrAgt>
            <FinInstnId/>
          </CdtrAgt>
          <Cdtr>
            <Pty>
              <Nm>Minerva McGonagall</Nm>
            </Pty>
          </Cdtr>
          <CdtrAcct>
            <Id>
              <Othr>
                <Id>20201755555555</Id>
              </Othr>
            </Id>
          </CdtrAcct>
        </OrgnlTxRef>
      </TxInfAndSts>
    </OrgnlPmtInfAndSts>
  </CstmrPmtStsRpt>
</Document>
```

{% endcode %}
{% endtab %}

{% tab title="Payment Response 2" %}
Second pain.002.001.10 with Accepted Settlement Completed (ACSC) status

{% code overflow="wrap" %}

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.002.001.10">
  <CstmrPmtStsRpt>
    <GrpHdr>
      <MsgId>1000224883</MsgId>
      <CreDtTm>2025-09-16T09:18:30.140+01:00</CreDtTm>
      <InitgPty>
        <Id>
          <OrgId>
            <AnyBIC>LHVBGB2LXXX</AnyBIC>
          </OrgId>
        </Id>
      </InitgPty>
    </GrpHdr>
    <OrgnlGrpInfAndSts>
      <OrgnlMsgId>LHV-20250916T143012Z-001</OrgnlMsgId>
      <OrgnlMsgNmId>pain.001.001.09</OrgnlMsgNmId>
    </OrgnlGrpInfAndSts>
    <OrgnlPmtInfAndSts>
      <OrgnlPmtInfId>PmtInfId160920251</OrgnlPmtInfId>
      <TxInfAndSts>
        <OrgnlInstrId>InstrId160920251</OrgnlInstrId>
        <TxSts>ACSC</TxSts>
        <AcctSvcrRef>83C4A0BB41CD4C5BA223A3BFDAF7EA6B</AcctSvcrRef>
        <OrgnlTxRef>
          <Amt>
            <InstdAmt Ccy="GBP">0.03</InstdAmt>
          </Amt>
          <ReqdExctnDt>
            <Dt>2025-09-16</Dt>
          </ReqdExctnDt>
          <PmtTpInf>
            <SvcLvl>
              <Prtry>FAST</Prtry>
            </SvcLvl>
          </PmtTpInf>
          <Dbtr>
            <Pty>
              <Nm>Connect Demo Customer 1</Nm>
            </Pty>
          </Dbtr>
          <DbtrAcct>
            <Id>
              <IBAN>GB31LHVB04031300004649</IBAN>
            </Id>
          </DbtrAcct>
          <DbtrAgt>
            <FinInstnId>
              <BICFI>LHVBGB2L</BICFI>
            </FinInstnId>
          </DbtrAgt>
          <CdtrAgt>
            <FinInstnId/>
          </CdtrAgt>
          <Cdtr>
            <Pty>
              <Nm>Minerva McGonagall</Nm>
            </Pty>
          </Cdtr>
          <CdtrAcct>
            <Id>
              <Othr>
                <Id>20201755555555</Id>
              </Othr>
            </Id>
          </CdtrAcct>
        </OrgnlTxRef>
      </TxInfAndSts>
    </OrgnlPmtInfAndSts>
  </CstmrPmtStsRpt>
</Document>
```

{% endcode %}
{% endtab %}

{% tab title="Transaction Notification" %}
Debit notification, camt.054.001.02.

```xml
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
  <BkToCstmrDbtCdtNtfctn>
    <GrpHdr>
      <MsgId>db71662c2f834398862694f2c0b0f7a3</MsgId>
      <CreDtTm>2025-09-16T09:18:16.178+01:00</CreDtTm>
    </GrpHdr>
    <Ntfctn>
      <Id>db71662c2f834398862694f2c0b0f7a3GBP</Id>
      <CreDtTm>2025-09-16T09:18:16.178+01:00</CreDtTm>
      <Acct>
        <Id>
          <IBAN>GB31LHVB04031300004649</IBAN>
        </Id>
        <Ccy>GBP</Ccy>
        <Ownr>
          <Nm>Connect Demo Customer 1</Nm>
          <Id>
            <OrgId>
              <Othr>
                <Id>13245678</Id>
              </Othr>
            </OrgId>
          </Id>
        </Ownr>
        <Svcr>
          <FinInstnId>
            <BIC>LHVBGB2L</BIC>
            <Nm>LHV BANK LIMITED</Nm>
            <PstlAdr>
              <AdrTp>BIZZ</AdrTp>
              <StrtNm>Angel Court</StrtNm>
              <BldgNb>1</BldgNb>
              <PstCd>EC2R 7HJ</PstCd>
              <TwnNm>London</TwnNm>
              <Ctry>GB</Ctry>
            </PstlAdr>
          </FinInstnId>
        </Svcr>
      </Acct>
      <Ntry>
        <NtryRef>1</NtryRef>
        <Amt Ccy="GBP">0.03</Amt>
        <CdtDbtInd>DBIT</CdtDbtInd>
        <RvslInd>false</RvslInd>
        <Sts>BOOK</Sts>
        <BookgDt>
          <Dt>2025-09-16</Dt>
        </BookgDt>
        <ValDt>
          <DtTm>2025-09-16T09:18:15.626+01:00</DtTm>
        </ValDt>
        <AcctSvcrRef>83C4A0BB41CD4C5BA223A3BFDAF7EA6B</AcctSvcrRef>
        <BkTxCd>
          <Domn>
            <Cd>PMNT</Cd>
            <Fmly>
              <Cd>ICDT</Cd>
              <SubFmlyCd>OTHR</SubFmlyCd>
            </Fmly>
          </Domn>
          <Prtry>
            <Cd>FAST</Cd>
          </Prtry>
        </BkTxCd>
        <NtryDtls>
          <TxDtls>
            <Refs>
              <AcctSvcrRef>83C4A0BB41CD4C5BA223A3BFDAF7EA6B</AcctSvcrRef>
              <PmtInfId>PmtInfId160920251</PmtInfId>
              <InstrId>InstrId160920251</InstrId>
              <EndToEndId>EndToEndId160920251</EndToEndId>
            </Refs>
            <AmtDtls>
              <InstdAmt>
                <Amt Ccy="GBP">0.03</Amt>
              </InstdAmt>
              <TxAmt>
                <Amt Ccy="GBP">0.03</Amt>
              </TxAmt>
            </AmtDtls>
            <RltdPties>
              <UltmtDbtr>
                <Nm>Customer of PSP2</Nm>
                <Id>
                  <OrgId>
                    <Othr>
                      <Id>12345678</Id>
                      <SchmeNm>
                        <Cd>COID</Cd>
                      </SchmeNm>
                    </Othr>
                  </OrgId>
                </Id>
              </UltmtDbtr>
              <Cdtr>
                <Nm>Minerva McGonagall</Nm>
              </Cdtr>
              <CdtrAcct>
                <Id>
                  <Othr>
                    <Id>20201755555555</Id>
                  </Othr>
                </Id>
              </CdtrAcct>
            </RltdPties>
            <RmtInf>
              <Strd>
                <CdtrRefInf>
                  <Tp>
                    <CdOrPrtry>
                      <Cd>SCOR</Cd>
                    </CdOrPrtry>
                  </Tp>
                  <Ref>PAY-INV-20250916</Ref>
                </CdtrRefInf>
              </Strd>
            </RmtInf>
          </TxDtls>
        </NtryDtls>
      </Ntry>
    </Ntfctn>
  </BkToCstmrDbtCdtNtfctn>
</Document>
```

{% endtab %}
{% endtabs %}
