Alipay and WeChat Pay

Outlines processing Alipay and WeChat Pay payments using the Terminal API.


There are 3 flows for wallet-based payments available in the Terminal API:

  • Regular payment flow
  • Wallet payment initiated on the PED 
  • Wallet payment initiated by scanning a QR code from the shopper's mobile device.

For more context on these flows, see Alipay and WeChat Pay flows.

Contact the Support Team to configure your terminal Alipay or WeChat Pay payments.

Endpoint

The URL used to send  Terminal API  messages depends on your type of implementation. For more information on the architectures available, see the Terminal API Overview .

PaymentRequest fields

For a list of Payment Request fields, see PaymentRequest fields.

The elements of a gift card payment request are wrapped in a PaymentRequest envelope. A PaymentRequest envelope must contain a SaleData object and a PaymentTransaction object.

The SaleID and ServiceID in the MessageHeader should be unique. SaleID and ServiceID combinations are rejected if used recently, within 48 hours.

The fields described below are the basic payment fields you specify when making a PaymentRequest call to the Terminal API.

Flow One

For more information on the standalone flow, see Alipay and WeChat Pay flows

Flow Two

Request

PaymentRequest
{
   "SaleToPOIRequest":{
      "MessageHeader":{
         "ProtocolVersion":"3.0",
         "MessageClass":"Service",
         "MessageCategory":"Payment",
         "MessageType":"Request",
         "ServiceID":"0918171608",
         "SaleID":"John",
         "POIID":"M400-401442542"
      },
      "PaymentRequest":{
         "SaleData":{
            "SaleTransactionID":{
               "TransactionID":"8954",
               "TimeStamp":"2018-09-18T15:16:08+00:00"
            },
            "SaleReferenceID":"SalesRefABC"
         },
         "PaymentTransaction":{
            "AmountsReq":{
               "Currency":"EUR",
               "RequestedAmount":100.99
            },
            "TransactionConditions":{
               "AllowedPaymentBrand":[
                  "alipay"
               ]
            }
         }
      }
   }
}

Response

For a list of Payment Response fields, see PaymentResponse fields.

An authorisation is attempted and you receive a response with the following fields:

PaymentResponse
{
   "SaleToPOIResponse":{
      "PaymentResponse":{
         "POIData":{
            "POITransactionID":{
               "TimeStamp":"2018-09-18T15:16:08.000Z",
               "TransactionID":"63Go001537283768000.9815372837693852"
            },
            "POIReconciliationID":"1000"
         },
         "SaleData":{
            "SaleTransactionID":{
               "TimeStamp":"2018-09-18T15:16:08.000Z",
               "TransactionID":"8954"
            },
            "SaleReferenceID":"SalesRefABC"
         },
         "PaymentReceipt":[
            {
               "RequiredSignatureFlag":false,
               "DocumentQualifier":"CashierReceipt",
               "OutputContent":{
                  "OutputFormat":"Text",
                  "OutputText":[
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=Header%20line%201&key=header1",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=www.adyen.com&key=header2",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=MERCHANT%20COPY&key=merchantTitle",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Date&value=18%2f09%2f18&key=txdate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Time&value=15%3a16%3a08&key=txtime",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card&key=pan",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Pref.%20name&key=preferredName",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card%20type&value=alipay&key=cardType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20method&value=alipay&key=paymentMethod",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20variant&value=alipay&key=paymentMethodVariant",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Entry%20mode&value=Barcode&key=posEntryMode",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=MID&value=208862187720064&key=mid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=TID&value=M400-401442542&key=tid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=PTID&value=01442542&key=ptid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=ATC&key=atc",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Buyer%20ID&value=2088102181794157&key=buyerId",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Operation%20type&value=alipay&key=walletOperationType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Transaction%20ref.&value=2018091821001004150500413614&key=walletTransactionReference",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20amount&value=788.56%20CNY&key=walletDccAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20rate&value=7.80830000&key=walletDccRate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Tender&value=63Go001537283768000&key=txRef",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Reference&value=8954&key=mref",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Type&value=GOODS_SERVICES&key=txtype",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=TOTAL&value=%e2%82%ac%20100.99%20%20&key=totalAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=APPROVED&key=approved",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     }
                  ]
               }
            },
            {
               "RequiredSignatureFlag":false,
               "DocumentQualifier":"CustomerReceipt",
               "OutputContent":{
                  "OutputFormat":"Text",
                  "OutputText":[
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=Header%20line%201&key=header1",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=www.adyen.com&key=header2",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=CARDHOLDER%20COPY&key=cardholderHeader",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Date&value=18%2f09%2f18&key=txdate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Time&value=15%3a16%3a08&key=txtime",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card&key=pan",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Pref.%20name&key=preferredName",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card%20type&value=alipay&key=cardType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20method&value=alipay&key=paymentMethod",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20variant&value=alipay&key=paymentMethodVariant",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Entry%20mode&value=Barcode&key=posEntryMode",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=MID&value=208862187720064&key=mid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=TID&value=M400-401442542&key=tid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=PTID&value=01442542&key=ptid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=ATC&key=atc",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Buyer%20ID&value=2088102181794157&key=buyerId",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Operation%20type&value=alipay&key=walletOperationType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Transaction%20ref.&value=2018091821001004150500413614&key=walletTransactionReference",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20amount&value=788.56%20CNY&key=walletDccAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20rate&value=7.80830000&key=walletDccRate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Tender&value=63Go001537283768000&key=txRef",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Reference&value=8954&key=mref",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Type&value=GOODS_SERVICES&key=txtype",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=TOTAL&value=%e2%82%ac%20100.99%20%20&key=totalAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=APPROVED&key=approved",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Please%20retain%20for%20your%20records&key=retain",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Thank%20you&key=thanks",
                        "EndOfLineFlag":true
                     }
                  ]
               }
            }
         ],
         "PaymentResult":{
            "PaymentAcquirerData":{
               "AcquirerPOIID":"M400-401442542",
               "AcquirerTransactionID":{
                  "TimeStamp":"2018-09-18T15:16:08.000Z",
                  "TransactionID":"9815372837693852"
               },
               "MerchantID":"TestMerchantPOS"
            },
            "PaymentInstrumentData":{
               "CardData":{
                  "EntryMode":[
                     "Scanned"
                  ],
                  "PaymentBrand":"alipay"
               },
               "PaymentInstrumentType":"Card"
            },
            "AmountsResp":{
               "AuthorizedAmount":100.99,
               "Currency":"EUR"
            }
         },
         "Response":{
            "Result":"Success",
            "AdditionalResponse":"tid=01442542&transactionType=GOODS_SERVICES&backendGiftcardIndicator=false&giftcardIndicator=false&pspReference=9815372837693852&paymentMethodVariant=alipay&offline=false&mid=208862187720064&note=Direct%20API%20REQUIRES%20payload%20crypto%20on%20live%2c%20cleartext%20allowed%20for%20testing%20only"
         }
      },
      "MessageHeader":{
         "ProtocolVersion":"3.0",
         "SaleID":"John",
         "MessageClass":"Service",
         "MessageCategory":"Payment",
         "ServiceID":"0918171608",
         "POIID":"M400-401442542",
         "MessageType":"Response"
      }
   }
}

Flow Three

Request

PaymentRequest
{
   "SaleToPOIRequest":{
      "MessageHeader":{
         "ProtocolVersion":"3.0",
         "MessageClass":"Service",
         "MessageCategory":"Payment",
         "MessageType":"Request",
         "ServiceID":"0918172639",
         "SaleID":"John",
         "POIID":"M400-401442542"
      },
      "PaymentRequest":{
         "SaleData":{
            "SaleTransactionID":{
               "TransactionID":"19629",
               "TimeStamp":"2018-09-18T15:26:39+00:00"
            },
            "SaleReferenceID":"SalesRefABC"
         },
         "PaymentTransaction":{
            "AmountsReq":{
               "Currency":"EUR",
               "RequestedAmount":100.99
            },
            "TransactionConditions":{
               "AllowedPaymentBrand":[
                  "alipay"
               ]
            }
         },
         "PaymentData":{
            "PaymentInstrumentData":{
               "PaymentInstrumentType":"StoredValue",
               "StoredValueAccountID":{
                  "StoredValueAccountType":"Other",
                  "EntryMode":[
                     "Scanned"
                  ],
                  "IdentificationType":"BarCode",
                  "StoredValueID":"284687593190468703"
               }
            }
         }
      }
   }
}

Response

For a list of Payment Response fields, see PaymentResponse fields.

An authorisation is attempted and you receive a response with the following fields:

PaymentResponse
{
   "SaleToPOIResponse":{
      "PaymentResponse":{
         "POIData":{
            "POITransactionID":{
               "TimeStamp":"2018-09-18T15:26:39.000Z",
               "TransactionID":"63Go001537284399003.9815372844003921"
            },
            "POIReconciliationID":"1000"
         },
         "SaleData":{
            "SaleTransactionID":{
               "TimeStamp":"2018-09-18T15:26:39.000Z",
               "TransactionID":"19629"
            },
            "SaleReferenceID":"SalesRefABC"
         },
         "PaymentReceipt":[
            {
               "RequiredSignatureFlag":false,
               "DocumentQualifier":"CashierReceipt",
               "OutputContent":{
                  "OutputFormat":"Text",
                  "OutputText":[
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=Header%20line%201&key=header1",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=www.adyen.com&key=header2",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=MERCHANT%20COPY&key=merchantTitle",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Date&value=18%2f09%2f18&key=txdate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Time&value=15%3a26%3a39&key=txtime",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card&key=pan",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Pref.%20name&key=preferredName",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card%20type&value=alipay&key=cardType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20method&value=alipay&key=paymentMethod",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20variant&value=alipay&key=paymentMethodVariant",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Entry%20mode&value=Barcode&key=posEntryMode",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=MID&value=208862187720064&key=mid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=TID&value=M400-401442542&key=tid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=PTID&value=01442542&key=ptid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=ATC&key=atc",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Buyer%20ID&value=2088102181794157&key=buyerId",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Operation%20type&value=alipay&key=walletOperationType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Transaction%20ref.&value=2018091821001004150500413216&key=walletTransactionReference",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20amount&value=788.56%20CNY&key=walletDccAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20rate&value=7.80830000&key=walletDccRate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Tender&value=63Go001537284399003&key=txRef",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Reference&value=19629&key=mref",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Type&value=GOODS_SERVICES&key=txtype",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=TOTAL&value=%e2%82%ac%20100.99%20%20&key=totalAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=APPROVED&key=approved",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     }
                  ]
               }
            },
            {
               "RequiredSignatureFlag":false,
               "DocumentQualifier":"CustomerReceipt",
               "OutputContent":{
                  "OutputFormat":"Text",
                  "OutputText":[
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=Header%20line%201&key=header1",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=www.adyen.com&key=header2",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=CARDHOLDER%20COPY&key=cardholderHeader",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Date&value=18%2f09%2f18&key=txdate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Time&value=15%3a26%3a39&key=txtime",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card&key=pan",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Pref.%20name&key=preferredName",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Card%20type&value=alipay&key=cardType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20method&value=alipay&key=paymentMethod",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Payment%20variant&value=alipay&key=paymentMethodVariant",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Entry%20mode&value=Barcode&key=posEntryMode",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=MID&value=208862187720064&key=mid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=TID&value=M400-401442542&key=tid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=PTID&value=01442542&key=ptid",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=ATC&key=atc",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Buyer%20ID&value=2088102181794157&key=buyerId",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Operation%20type&value=alipay&key=walletOperationType",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Transaction%20ref.&value=2018091821001004150500413216&key=walletTransactionReference",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20amount&value=788.56%20CNY&key=walletDccAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=DCC%20rate&value=7.80830000&key=walletDccRate",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Tender&value=63Go001537284399003&key=txRef",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Reference&value=19629&key=mref",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Type&value=GOODS_SERVICES&key=txtype",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=TOTAL&value=%e2%82%ac%20100.99%20%20&key=totalAmount",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "CharacterStyle":"Bold",
                        "Text":"name=APPROVED&key=approved",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Please%20retain%20for%20your%20records&key=retain",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"key=filler",
                        "EndOfLineFlag":true
                     },
                     {
                        "Text":"name=Thank%20you&key=thanks",
                        "EndOfLineFlag":true
                     }
                  ]
               }
            }
         ],
         "PaymentResult":{
            "PaymentAcquirerData":{
               "AcquirerPOIID":"M400-401442542",
               "AcquirerTransactionID":{
                  "TimeStamp":"2018-09-18T15:26:39.000Z",
                  "TransactionID":"9815372844003921"
               },
               "MerchantID":"TestMerchantPOS"
            },
            "PaymentInstrumentData":{
               "StoredValueAccountID":{
                  "IdentificationType":"BarCode",
                  "EntryMode":[
                     "Scanned"
                  ],
                  "StoredValueID":"284687593190468703",
                  "StoredValueAccountType":"Other"
               },
               "PaymentInstrumentType":"StoredValue"
            },
            "AmountsResp":{
               "AuthorizedAmount":100.99,
               "Currency":"EUR"
            },
            "PaymentType":"Normal"
         },
         "Response":{
            "Result":"Success",
            "AdditionalResponse":"tid=01442542&transactionType=GOODS_SERVICES&backendGiftcardIndicator=false&giftcardIndicator=false&pspReference=9815372844003921&paymentMethodVariant=alipay&offline=false&mid=208862187720064&note=Direct%20API%20REQUIRES%20payload%20crypto%20on%20live%2c%20cleartext%20allowed%20for%20testing%20only"
         }
      },
      "MessageHeader":{
         "ProtocolVersion":"3.0",
         "SaleID":"John",
         "MessageClass":"Service",
         "MessageCategory":"Payment",
         "ServiceID":"0918172639",
         "POIID":"M400-401442542",
         "MessageType":"Response"
      }
   }
}