Alipay QR Pay

REST API

Please note that you can use the REST API documentation also for Wirecard Payment Page v1 LEGACY integration.

Alipay QR Pay is a type of Wallet.

Countries and Currencies

Countries

International

Currencies

Alipay collects payment (RMB) from shoppers to buy foreign currency.

At the moment, Alipay supports the settlement of 12 foreign currencies: USD, EUR, JPY, GBP, CAD, AUD, SGD, CHF, SEK, DKK, NOK, HKD.

Consumers can pay in CNY,USD, EUR, JPY, GBP, CAD, AUD, SGD, CHF, SEK, DKK, NOK, NZD, THB, HKD, and major settlement currencies are included but not limited to USD, EUR, JPY, GBP, CAD, AUD, SGD, CHF, SEK, DKK, NOK, NZD, THB, HKD. For unsupported currencies, transactions can be made in USD.

One merchant account only supports one settlement currency.
Communication Formats

This table illustrates how Alipay QR Pay notifications are encoded and which formats and methods can be used for requests and responses.

Requests/Responses

Format

XML, NVP

Methods

POST, GET

IPN Encodements

Please follow the instructions given at Instant Payment Notification to set up IPN.

Transaction Types

For transaction type details, which are not given here look at Transaction Types.

Transaction Type Link to the Sample

get-url

debit/get-url samples

check-signature

debit

debit/get-url samples

refund-debit

refund-debit samples

void-debit

Voids the validity of a QR code. After a void-debit, the consumer can no longer pay with the QR code that was generated with the preceding debit request. If a payment has already occurred, it will be refunded.
void-debit samples

Test Credentials

Test transactions with the given credentials bill your Alipay account. Use only small amounts for test transactions.
You can request a refund within 6 months of the initial transaction.

URL(s) Endpoints

For transaction types debit and void-debit

https://api-test.wirecard.com/engine/rest/paymentmethods/

For transaction type refund-debit

https://api-test.wirecard.com/engine/rest/payments/

Merchant Account ID (MAID)

41c95d64-f929-4374-a067-f023ab3f08d4

Username

engine.alipayqr

Password

Changeme@123

Workflow
Alipay QR Pay Workflow
  1. The consumer approaches the cashier to pay for the selected items.

  2. Create a request to the Wirecard Payment Gateway to generate the QR code so that the consumer can make the payment.

  3. Wirecard Payment Gateway transmits the request to Alipay.

  4. Alipay sends a response to Wirecard Payment Gateway with a URL that contains the generated QR code in different sizes.

  5. You receive the QR code based on the returned payment URL from Alipay.

  6. The consumer scans the QR code with Alipay Wallet and confirms the payment on their device.

  7. Alipay returns the payment result to Wirecard Payment Gateway.

  8. Wirecard Payment Gateway notifies you about the payment result.

Fields

The fields used for Alipay QR Pay requests, responses and notifications are the same as the REST API Fields. Only the fields listed below have different properties.

The following elements are mandatory (M) or optional (O) for a request/response/notification. If the respective cell is empty, the field is disregarded or not sent.

custom-fields.custom-field
Field Name M/O Size Description

alipay_buyer_login_id

Notification only

128

The consumer’s Alipay ID, which can be an email address or phone number. Returned from Alipay. Can be used on receipt.
e.g. paul.peterson@alitest.com

alipay_pay_time

Notification only

14

The time when the payment has been completed. Can be used on receipt.
Format: yyyyMMddHHmmss
e.g. 20200220225336

alipay_trans_id

Notification only

28

Alipay Transaction ID as returned from Alipay. Can be used on receipt.
e.g. 2020022022001447411000303594

big_pic_url

Notification and Response

256

The URL to the large QR code format
e.g. http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&picSize=L

exchange_rate

Notification only

11.8

The exchange rate between the currency given in the request to CNY. The exchange occurs when the Alipay trade order is created. Returned from Alipay. Can be used on receipt.
e.g. 6.64640000

partner_trans_id

Notification only

64

Returned from Alipay. Can be used on receipt.
e.g. ef0c0782-c224-423d-aedd-c0e2557dab6b

pic_url

Notification and Response

256

The URL to the medium QR code format
e.g. http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&picSize=M

small_pic_url

Notification and Response

256

URL to small QR code
e.g. http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&picSize=S

trans_amount_cny

Notification only

11.2

The total transaction amount in CNY. Returned from Alipay. Can be used on receipt.
e.g. 192.81

voucher_type

Notification and Response

10

The voucher type returned from Alipay. Can be used on receipt.
e.g. qrcode

wallet
Field Name M/O Size Description

account-id

Notification only

16

The consumer’s unique Alipay User ID returned from Alipay. Can be used on receipt.

payment-methods
Field Name M/O Size Description

paymentmethod@url

Notification and Response

256

The URL to the default QR code format
e.g. https://qr.alipay.com/bax023098uz6jvkieyrx00b6

QR Code Display Options
  1. Large Size
    <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&picSize=L"/>

  2. Medium Size
    <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&picSize=M"/>

  3. Small Size (default)
    <payment-method url="http://mobilecodec.alipaydev.com/show.htm?code=bax074522rpql8xy1wul00bf&picSize=S" name="alipay-qr-gen"/>

Samples
debit/get-url
XML debit Request (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
  <payment-methods>
    <payment-method name="alipay-qr-gen"/>
  </payment-methods>
  <transaction-type>debit</transaction-type>
  <request-id>d0850c4d-9a47-45df-8ee8-49c1b30e2bc4</request-id>
  <requested-amount currency="USD">29.01</requested-amount>
  <descriptor>Payment by QR-Code </descriptor>
  <order-detail>iphone cellphone</order-detail>
  <order-items>
      <order-item>
          <article-number>apple-01</article-number>
          <name>ipad</name>
          <quantity>1</quantity>
          <description>Cellphone at a sale</description>
          <amount currency="USD">20.01</amount>
      </order-item>
  </order-items>
  <sub-merchant-info>
      <id>A11</id>
      <name>Muku</name>
      <category>7011</category>
      <store-id>BJ_ZZ_001</store-id>
      <store-name>Muku in the Dreieichstrabe</store-name>
  </sub-merchant-info>
  <pos>
      <terminal-id>T123456</terminal-id>
  </pos>
  <custom-fields>
    <custom-field field-name="settlement-currency" field-value="USD"/>
  </custom-fields>
  <notifications>
    <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
  </notifications>
  <account-holder>
    <last-name>N/A</last-name>
  </account-holder>
</payment>
XML get-url Response (Successful)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>8eb1ce35-f0af-4ba8-894d-e5a4990d41e5</transaction-id>
    <request-id>d0850c4d-9a47-45df-8ee8-49c1b30e2bc4-get-url</request-id>
    <transaction-type>get-url</transaction-type>
    <transaction-state>success</transaction-state>
    <completion-time-stamp>2020-04-10T09:16:49.000Z</completion-time-stamp>
    <statuses>
        <status code="201.0000" description="The resource was successfully created." severity="information"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <account-holder>
        <last-name>N/A</last-name>
    </account-holder>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.01</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"></notification>
    </notifications>
    <custom-fields>
        <custom-field field-name="settlement-currency" field-value="USD"></custom-field>
        <custom-field field-name="big_pic_url" field-value="https://mobilecodec.alipaydev.com/show.htm?code=bax01804dhbur9kg2ygh0054&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax01804dhbur9kg2ygh0054"/>
        <custom-field field-name="small_pic_url" field-value="https://mobilecodec.alipaydev.com/show.htm?code=bax01804dhbur9kg2ygh0054&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="https://mobilecodec.alipaydev.com/show.htm?code=bax01804dhbur9kg2ygh0054&amp;picSize=M"/>
    </custom-fields>
    <payment-methods>
        <payment-method url="https://mobilecodec.alipaydev.com/show.htm?code=bax01804dhbur9kg2ygh0054&amp;picSize=S" name="alipay-qr-gen"/>
    </payment-methods>
    <pos>
        <terminal-id>T123456</terminal-id>
    </pos>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
</payment>
XML debit Notification (Successful)
<?xml version="1.0" encoding="UTF-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>82864dd5-6e31-4dd0-91d3-f72c20212b7d</transaction-id>
    <request-id>ca591b27-b56c-45b3-afcb-3fa3a9a497d83</request-id>
    <transaction-type>debit</transaction-type>
    <transaction-state>success</transaction-state>
    <completion-time-stamp>2020-02-20T14:53:41.000Z</completion-time-stamp>
    <statuses>
        <status code="201.0000" description="alipay-qr-gen:The resource was successfully created." severity="information"/>
    </statuses>
    <requested-amount currency="USD">29.010000</requested-amount>
    <parent-transaction-id>ef0c0782-c224-423d-aedd-c0e2557dab6b</parent-transaction-id>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.010000</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
    </notifications>
    <custom-fields>
        <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax023098uz6jvkieyrx00b6"/>
        <custom-field field-name="small_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=M"/>
        <custom-field field-name="alipay_pay_time" field-value="20200220225336"/>
        <custom-field field-name="alipay_trans_id" field-value="2020022022001447411000303594"/>
        <custom-field field-name="partner_trans_id" field-value="ef0c0782-c224-423d-aedd-c0e2557dab6b"/>
        <custom-field field-name="alipay_buyer_login_id" field-value="for*@alitest.*"/>
        <custom-field field-name="exchange_rate" field-value="6.64640000"/>
        <custom-field field-name="trans_amount_cny" field-value="192.81"/>
    </custom-fields>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <api-id>---</api-id>
    <wallet>
        <account-id>2088622924847415</account-id>
    </wallet>
    <provider-transaction-reference-id>ef0c0782-c224-423d-aedd-c0e2557dab6b</provider-transaction-reference-id>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
    <provider-account-id>2088621922365105</provider-account-id>
</payment>
XML debit Request (Failure)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
  <payment-methods>
    <payment-method name="alipay-qr-gen"/>
  </payment-methods>
  <transaction-type>debit</transaction-type>
  <request-id>ca591b27-b56c-45b3-afcb-3fa3a9a497d81</request-id>
  <requested-amount currency="USD">29.01</requested-amount>
  <descriptor>Payment by QR-Code </descriptor>
  <order-detail>iphone cellphone</order-detail>
  <order-items>
      <order-item>
          <article-number>apple-01</article-number>
          <name>ipad</name>
          <quantity>1</quantity>
          <description>Cellphone at a sale</description>
          <amount currency="USD">20.01</amount>
      </order-item>
  </order-items>
  <sub-merchant-info>
      <id>A11</id>
      <name>Muku</name>
      <category>7011</category>
      <store-id>BJ_ZZ_001</store-id>
      <store-name>Muku in the Dreieichstrabe</store-name>
  </sub-merchant-info>
</payment>
XML get-url Response (Failure)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>6af92e44-a963-47d0-b19a-947ae0745fcb</transaction-id>
    <transaction-type>get-url</transaction-type>
    <transaction-state>failed</transaction-state>
    <completion-time-stamp>2020-04-14T14:34:50.000Z</completion-time-stamp>
    <statuses>
        <status code="400.1018" description="The same Request Id for the Merchant Account is being tried a second time.  Please use another Request Id." severity="error"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.01</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
</payment>
refund-debit
XML refund-debit Request (Successful)
<?xml version="1.0" encoding="UTF-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <request-id>ace1267f-3bfc-4a32-a4ba-2b8d944e4641</request-id>
    <transaction-type>refund-debit</transaction-type>
    <parent-transaction-id>82864dd5-6e31-4dd0-91d3-f72c20212b7d</parent-transaction-id>
    <requested-amount currency="USD">29.01</requested-amount>
    <ip-address>127.0.0.1</ip-address>
</payment>
XML refund-debit Response (Successful)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment" self="https://dev.thesolution.com/engine/rest/merchants/00332ddc-bae7-4e35-ba87-c395dd5a6eb4/payments/67677fc4-d48b-4c05-bd54-a1c7d4ade930">
    <merchant-account-id ref="https://dev.thesolution.com/engine/rest/config/merchants/41c95d64-f929-4374-a067-f023ab3f08d4">41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>67677fc4-d48b-4c05-bd54-a1c7d4ade930</transaction-id>
    <request-id>ace1267f-3bfc-4a32-a4ba-2b8d944e4641</request-id>
    <transaction-type>refund-debit</transaction-type>
    <transaction-state>success</transaction-state>
    <completion-time-stamp>2020-02-20T15:00:12.000Z</completion-time-stamp>
    <statuses>
        <status code="201.0000" description="alipay-qr-gen:The resource was successfully created." severity="information"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <parent-transaction-id>82864dd5-6e31-4dd0-91d3-f72c20212b7d</parent-transaction-id>
    <ip-address>127.0.0.1</ip-address>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.010000</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
    </notifications>
    <custom-fields>
         <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax023098uz6jvkieyrx00b6"/>
        <custom-field field-name="small_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=M"/>
        <custom-field field-name="alipay_pay_time" field-value="20200220225336"/>
        <custom-field field-name="alipay_trans_id" field-value="2020022022001447411000303594"/>
        <custom-field field-name="partner_trans_id" field-value="ef0c0782-c224-423d-aedd-c0e2557dab6b"/>
        <custom-field field-name="alipay_buyer_login_id" field-value="for*@alitest.*"/>
        <custom-field field-name="exchange_rate" field-value="6.64640000"/>
        <custom-field field-name="trans_amount_cny" field-value="192.81"/>
    </custom-fields>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <parent-transaction-amount currency="USD">29.010000</parent-transaction-amount>
    <api-id>elastic-api</api-id>
    <wallet>
        <account-id>2088622924847415</account-id>
    </wallet>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
    <provider-account-id>2088621922365105</provider-account-id>
</payment>
XML refund-debit Notification (Successful)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>67677fc4-d48b-4c05-bd54-a1c7d4ade930</transaction-id>
    <request-id>ace1267f-3bfc-4a32-a4ba-2b8d944e4641</request-id>
    <transaction-type>refund-debit</transaction-type>
    <transaction-state>success</transaction-state>
    <completion-time-stamp>2020-02-20T15:00:12.000Z</completion-time-stamp>
    <statuses>
        <status code="201.0000" description="alipay-qr-gen:The resource was successfully created." severity="information"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <parent-transaction-id>82864dd5-6e31-4dd0-91d3-f72c20212b7d</parent-transaction-id>
    <ip-address>127.0.0.1</ip-address>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.010000</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
    </notifications>
    <custom-fields>
        <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax023098uz6jvkieyrx00b6"/>
        <custom-field field-name="small_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax023098uz6jvkieyrx00b6&amp;picSize=M"/>
        <custom-field field-name="alipay_pay_time" field-value="20200220225336"/>
        <custom-field field-name="alipay_trans_id" field-value="2020022022001447411000303594"/>
        <custom-field field-name="partner_trans_id" field-value="ef0c0782-c224-423d-aedd-c0e2557dab6b"/>
        <custom-field field-name="alipay_buyer_login_id" field-value="for*@alitest.*"/>
        <custom-field field-name="exchange_rate" field-value="6.64640000"/>
        <custom-field field-name="trans_amount_cny" field-value="192.81"/>
    </custom-fields>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <parent-transaction-amount currency="USD">29.010000</parent-transaction-amount>
    <api-id>elastic-api</api-id>
    <wallet>
        <account-id>2088622924847415</account-id>
    </wallet>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
    <provider-account-id>2088621922365105</provider-account-id>
</payment>
void-debit
XML void-debit Request (Successful)
<?xml version="1.0" encoding="UTF-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <request-id>a1e1267f-3bfc-4a32-a4ba-2b8d944e3630</request-id>
    <transaction-type>void-debit</transaction-type>
    <parent-transaction-id>a7b76bcf-6a0c-43d6-a51d-56edf5044ca5</parent-transaction-id>
    <ip-address>127.0.0.1</ip-address>
</payment>
XML void-debit Response (Successful)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>0cb307df-bf43-4d93-8294-bbcb5c4a32a4</transaction-id>
    <request-id>a1e1267f-3bfc-4a32-a4ba-2b8d944e3630</request-id>
    <transaction-type>void-debit</transaction-type>
    <transaction-state>success</transaction-state>
    <completion-time-stamp>2020-02-20T16:41:10.000Z</completion-time-stamp>
    <statuses>
        <status code="201.0000" description="The resource was successfully created." severity="information"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <parent-transaction-id>a7b76bcf-6a0c-43d6-a51d-56edf5044ca5</parent-transaction-id>
    <ip-address>127.0.0.1</ip-address>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.010000</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
    </notifications>
    <custom-fields>
        <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax03232pcjua5tzyqgz00b3"/>
        <custom-field field-name="small_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=M"/>
    </custom-fields>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <api-id>---</api-id>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
</payment>
XML void-debit Response (Failed)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>41c95d64-f929-4374-a067-f023ab3f08d4</merchant-account-id>
    <transaction-id>0cb307df-bf43-4d93-8294-bbcb5c4a32a4</transaction-id>
    <request-id>a1e1267f-3bfc-4a32-a4ba-2b8d944e3640</request-id>
    <transaction-type>void-debit</transaction-type>
    <transaction-state>failed</transaction-state>
    <completion-time-stamp>2020-02-20T17:31:09.000Z</completion-time-stamp>
    <statuses>
        <status code="500.1085" description="alipay-qr-gen:Alipay system error" severity="error"/>
    </statuses>
    <requested-amount currency="USD">29.01</requested-amount>
    <parent-transaction-id>a7b76bcf-6a0c-43d6-a51d-56edf5044ca5</parent-transaction-id>
    <ip-address>127.0.0.1</ip-address>
    <order-detail>iphone cellphone</order-detail>
    <order-items>
        <order-item>
            <name>ipad</name>
            <description>Cellphone at a sale</description>
            <article-number>apple-01</article-number>
            <amount currency="USD">20.010000</amount>
            <quantity>1</quantity>
        </order-item>
    </order-items>
    <descriptor>Payment by QR-Code </descriptor>
    <notifications>
        <notification transaction-state="success" url="https://alipay-qr-gen.free.beeceptor.com"/>
    </notifications>
    <custom-fields>
        <custom-field field-name="big_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=L"/>
        <custom-field field-name="voucher_type" field-value="qrcode"/>
        <custom-field field-name="qr_code" field-value="https://qr.alipay.com/bax03232pcjua5tzyqgz00b3"/>
        <custom-field field-name="small_pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=S"/>
        <custom-field field-name="pic_url" field-value="http://mobilecodec.alipaydev.com/show.htm?code=bax03232pcjua5tzyqgz00b3&amp;picSize=M"/>
    </custom-fields>
    <payment-methods>
        <payment-method name="alipay-qr-gen"/>
    </payment-methods>
    <api-id>---</api-id>
    <sub-merchant-info>
        <id>A11</id>
        <name>Muku</name>
        <category>7011</category>
        <store-id>BJ_ZZ_001</store-id>
        <store-name>Muku in the Dreieichstrabe</store-name>
    </sub-merchant-info>
</payment>