Google Pay™

REST API

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

Introduction

Wirecard lets merchants take advantage of fast, cashless payments for products and services via a mobile device with Google Pay™.
Google Pay is the fast, simple way to pay at millions of places - on sites, in apps, and in stores. It brings together everything you need at checkout and protects your payment info with multiple layers of security.
Plus, Google Pay makes it easy to redeem loyalty points, manage your cards, and get personalized suggestions to help you save time and money.

Transaction Types
Transaction Type (WPG (*)) Transaction Type (Google Pay)

authorization

Authorizations

purchase

One-Time

capture-authorization

Partial shipment

refund-capture, refund-purchase

Refund

void-authorization

Void

(*) WPG = Wirecard Payment Gateway

Test Credentials
For GooglePay tokenized cards Testing

URLs (Endpoints)

To Test Environment

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

To Production Environment

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

Currencies

AUD ,CAD ,CHF ,CZK ,DKK ,EUR ,GBP ,HRK ,HUF ,ILS ,INR ,JPY ,MXN ,NZD,PLN ,RON ,RUB ,SEK ,SGD ,THB ,TRY ,USD ,ZAR

Countries

International

Test Merchant Account ID

Merchant-Account-ID
This property value is set as the gatewayMerchantId in GATEWAY_TOKENIZATION_PARAMETERS of the merchant google app (eg.merchant google test app)

3a3d15ec-197a-4958-890e-9843f86207ee

Username

70000-APITEST-AP

Password

qD2wzQ_hrc!8

Google API Gateway ID
This property value is set as the GATEWAY_TOKENIZATION_NAME in the merchant google app (eg. merchant google test app)

wirecard

Secret Key

5c879659-f7ab-41ea-bf23-df9f4b953a33

IPN Encoding

Base64

Payment Mode

tokenized cards

Requests/Responses

Format (Languages)

XML

Methods

POST, GET

For GooglePay non-tokenized cards testing

URLs (Endpoints)

To Test Environment

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

To Production Environment

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

Currencies

AUD ,CAD ,CHF ,CZK ,DKK ,EUR ,GBP ,HRK ,HUF ,ILS ,INR ,JPY ,MXN ,NZD, PLN ,RON ,RUB ,SEK ,SGD ,THB ,TRY ,USD ,ZAR

Countries

International

Test Merchant Account ID

Merchant-Account-ID
This property value is set as the gatewayMerchantId in GATEWAY_TOKENIZATION_PARAMETERS of the merchant google app (eg.merchant google test app)

9fcacb0d-b46a-4ce2-867b-6723687fdba1

Username

70000-APITEST-AP

Password

qD2wzQ_hrc!8

Google API Gateway ID
This property value is set as the GATEWAY_TOKENIZATION_NAME in the merchant google app (eg. merchant google test app)

wirecard

Secret Key

bd60d7b0-b5a0-4ffe-b2db-e004a0fce893

IPN Encoding

Base64

Payment Mode

non-tokenized cards

Requests/Responses

Format (Languages)

XML

Methods

POST, GET

Merchant End to End Testing
1. Testing with a tokenized card (Google Pay™ cryptogram contains a token)
  1. Add a 'contactless' enabled credit card using Google Pay™ app in your android phone.

  2. Follow the Google Pay™ instructions to create a test app to generate a test cryptogram.

  3. Modify to use wirecard as the GATEWAY_TOKENIZATION_NAME and merchant-account-id as gatewayMerchantId in GATEWAY_TOKENIZATION_PARAMETERS.

  4. Google Pay™ returns a payment token response in JSON format:

    {
    "signature":"MEUCIFXY8mm4DSujSeC4LXwi2kECjP/x0ImV0j/4v5VRTZ3sAiEA0L+nBAo6Oa/3z/jKaj1pa1grtK7qshJlpeq3HqU82WU\u003d",
    "protocolVersion":"ECv1",
    "signedMessage":"
    {\"encryptedMessage\":\"a8nDFDlmwnVVWx+WkN49hMaF30Kam7tDr8d4YUjNid/ug0JrWd9f3bCadKWq+aNydcKJIOnUeiyCFCXOSQCnZfXuLu2Xscus8X0VSOijUyj91aKR35aOMPK4Wt7tJDMmfTTph/nUqoeGGu5VFPnP7yz/G6tY5hVqZKLBD9w2WDeOg5h/P/37QsZEJEEzZS8cAEG7uAdXs+ZG/EzKdiQvtH7Awg12tk7kJZbrkFIOf7YN28ntJcBurqYPxR3MedoLIU+GOHVqrO6QH2pB/xw8acRYPL/Sihv1aalpHLL7mmxTAURN/D/pLZLcsQZimtjHa6ZeUeCJyGFNhQ8DF9Rex1hSl1x1SB1bDhJuU2FUCGtSbuNYhhdQ1Az9UD6BAtgNJ/6xecCtASDusRu1pzgZhNJGwAYt1zu77aguvuvVgpVWttlXeeyjzWMPD7w7NytcLDk9+GpNoAf5QLHyEDXbFoJ9DzBDg3vNpu2I8KkUtmf06TOANmsKG4YLKlDr4tT+0gpqVie+jXKu8PL+GpUdODGnQlvDWO3fqkgX1uK417TDxP9FZ4HDG71Rb1RA+JBJ+XSPzkV0HpOCH7giHKkCYwkdLyiPPJPyw7C4Zg7j/vzYFv9NJV2G9w\\u003d\\u003d\",\"ephemeralPublicKey\":\"BHBhrSltfbOtCRFcxrtdbL4JZJt6SFuEuMGjtU8ueRT7ZrR6y02KnTw+dl3LAB+iVzys3sJSC2hVW4PuZXc6tMU\\u003d\",\"tag\":\"hLqNmvlMiHyJbXakq+/gj21VjULzeL2jwqwmCis4qTM\\u003d\"}"
    }
  5. Create an authorization or purchase request. In this request you must pass the Google Pay™ payment token response as a Base64-encoded value in the cryptogram-value field.

  6. Send this request to Wirecard Payment Gateway for processing. For details see the authorization or purchase request containing the Base64-encoded Google Pay™ cryptogram.

2. Testing with a non-tokenized card (Google Pay™ cryptogram contains the PAN)
  1. Add a credit card to your google account.

  2. Follow the Google Pay™ instructions to create a test app to generate a test cryptogram.

  3. Modify to use wirecard as the GATEWAY_TOKENIZATION_NAME and merchant-account-id as gatewayMerchantId in GATEWAY_TOKENIZATION_PARAMETERS.

  4. Google Pay™ returns a payment token response in JSON format:

    {
    "signature":"MEQCIGyEZLxhuh8fgy1x7D94V3iStGxbtCa1+mwBpWRdDN0wAiAspFlGpA4WDxSiczGqaQpBTQkqQx5N9WCZrFeFdSFxlQ\u003d\u003d",
    "protocolVersion":"ECv1",
    "signedMessage":"
    {\"encryptedMessage\":\"WGUmFopxWWCw8q2f3MPhKPB9f5pWlmup/6pHayUryEOWbqeqWb8H6BzcaUjpaRP+zvMdTxxGFkaOCGF+xV2Ri80rK06ROl9cetlmCOqwvyrDF6bg1OE4U/6wiQNSmQQ4HhDRx12yZK8SbfACd3Ne1UqjDAZxghchZ5KhKNi1YDAGeeUNijfBzt0wyoW/P97pRm5jj6NrIxceMIjiMZPS5et/tLJcRbAE0KUR6CnIP+XbBskTZ8k5iG1myEBBai9rM3f7OxddkKQxdO5azEIe4IKcbVweOFhzpKIQxBz/Z6El/18GsWdvaJYcN2fFMNlTnD6EAwxDoQtLqk47vj3GQZMqeLNjaH/Su2HqaxJXIY18M9Wfq2Fe6dhpV/DkzkYSNQlq9vYIyTye3Q/iouas3UuE6O01zCOYOSPGeqvUnxJpLFBa0aVlRVSAmAezcxqQFkMN4lNC47EXB0buF7l9bDiwa22ESpeJszivwoq0fA\\u003d\\u003d\",\"ephemeralPublicKey\":\"BEyGrSxe/7xn8ULcMlhZaJTmGgBlP9Q0H4JnTom4OAB49L5e0BTUnoEuPilEhPmaFQJlVCcuOzI/F5nvojmZyiI\\u003d\",\"tag\":\"auN1jOSVfQY6VPO4IFMzNdDV0kvueGAPi4fNN9IhtX4\\u003d\"}"
    }
  5. Create an authorization or purchase request. In this request you must pass the Google Pay™ payment token response as a Base64-encoded value in the cryptogram-value field.

  6. Send this request to Wirecard Payment Gateway for processing. For details see the authorization or purchase request containing the Base64-encoded Google Pay™ cryptogram.

Fields

<cryptogram-value> is optional in the response.

All the other fields used for Google Pay requests, responses and notifications are the same as the REST API Fields. Please refer to the API field list.

Samples
authorization
XML Authorization Request (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
  <request-id>0cb57755-0fa8-4113-bd93-dc0105ae13b0</request-id>
  <transaction-type>authorization</transaction-type>
  <requested-amount currency="USD">0.20</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <email>tech.pdi-gw@wirecard.com</email>
    <address>
      <street1>Any Street</street1>
      <city>Toronto</city>
      <state>ON</state>
      <country>CA</country>
      <postal-code>M2H1C9</postal-code>
    </address>
  </account-holder>
  <card>
    <card-type>visa</card-type>
  </card>
  <crypt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T0t4cEpXUTZzQ0czdGtcXHUwMDNkXCIsXCJ0YWdcIjpcIngxNkU5Y3U1UTZscUhlMENzL0FtZ3drMzcxeGZNZWNsZXAwak5jRWtIeFlcXHUwMDNkXCJ9In0=</cryptogram-value>
    <cryptogram-type>google-pay</cryptogram-type>
  </cryptogram>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard"/>
  </payment-methods>
</payment>
XML Authorization Response (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction" self="https://api-test.wirecard.com:443/engine/rest/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1/payments/a13463f2-4a77-4b76-acb8-5c829535f847">
  <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1">9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
  <transaction-id>a13463f2-4a77-4b76-acb8-5c829535f847</transaction-id>
  <request-id>0cb57755-0fa8-4113-bd93-dc0105ae13b0</request-id>
  <transaction-type>authorization</transaction-type>
  <transaction-state>success</transaction-state>
  <completion-time-stamp>2018-09-20T13:51:10.000Z</completion-time-stamp>
  <statuses>
    <status code="201.0000" description="3d-acquirer:The resource was successfully created." severity="information"/>
  </statuses>
  <requested-amount currency="USD">0.20</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <email>tech.pdi-gw@wirecard.com</email>
    <address>
      <street1>Any Street</street1>
      <city>Toronto</city>
      <state>ON</state>
      <country>CA</country>
      <postal-code>M2H1C9</postal-code>
    </address>
  </account-holder>
  <cryptogram>
    <cryptogram-type>google-pay</cryptogram-type>
    <cryptogram-value>eyJzaWduYXR1cmUiOiJNRVlDSVFDSVM0QVZRV2ZXTEFBbW56TVZsMXUwckViZnFIM3g0UDhXUVd6K1VrL3dJZ0loQUkvc3oyOHBqVTFBbmluRnlDVGVienAzcXI3ZGs2bXN1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-address>127.0.0.1</ip-address>
  <descriptor></descriptor>
  <payment-methods>
    <payment-method name="creditcard"/>
  </payment-methods>
  <authorization-code>361538</authorization-code>
  <api-id>elastic-api</api-id>
  <entry-mode>mcommerce</entry-mode>
  <provider-account-id>0000003174475EA0</provider-account-id>
</payment>
capture-authorization
XML Capture-Authorization Request (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
    <request-id>c09207d2-e774-4df4-8b1d-b26934bde7a0</request-id>
    <transaction-type>capture-authorization</transaction-type>
    <parent-transaction-id>a13463f2-4a77-4b76-acb8-5c829535f847</parent-transaction-id>
    <requested-amount currency="USD">0.20</requested-amount>
    <ip-address>127.0.0.1</ip-address>
</payment>
XML Capture-Authorization Response (Successful)
<payment self="https://api-test.wirecard.com:443/engine/rest/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1/payments/88915dc8-f144-4390-85d1-f7e84cb14a99" xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction">
   <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1">9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
   <transaction-id>88915dc8-f144-4390-85d1-f7e84cb14a99</transaction-id>
   <request-id>c09207d2-e774-4df4-8b1d-b26934bde7a0</request-id>
   <transaction-type>capture-authorization</transaction-type>
   <transaction-state>success</transaction-state>
   <completion-time-stamp>2018-09-20T14:21:15.000Z</completion-time-stamp>
   <statuses>
      <status code="201.0000" description="3d-acquirer:The resource was successfully created." severity="information"/>
   </statuses>
   <requested-amount currency="USD">0.20</requested-amount>
   <parent-transaction-id>a13463f2-4a77-4b76-acb8-5c829535f847</parent-transaction-id>
   <account-holder>
      <first-name>John</first-name>
      <last-name>Doe</last-name>
      <email>tech.pdi-gw@wirecard.com</email>
      <address>
         <street1>Any Street</street1>
         <city>Toronto</city>
         <state>ON</state>
         <country>CA</country>
         <postal-code>M2H1C9</postal-code>
      </address>
   </account-holder>
   <card-token>
      <masked-account-number>411111******1111</masked-account-number>
   </card-token>
   <cryptogram>
      <cryptogram-type>google-pay</cryptogram-type>
   </cryptogram>
   <ip-address>127.0.0.1</ip-address>
   <payment-methods>
      <payment-method name="creditcard"/>
   </payment-methods>
   <parent-transaction-amount currency="USD">0.200000</parent-transaction-amount>
   <authorization-code>361538</authorization-code>
   <api-id>elastic-api</api-id>
   <provider-account-id>0000003174475EA0</provider-account-id>
</payment>
purchase
XML Purchase Request (Successful)
 <payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
  <request-id>5d631840-78a8-435a-94e9-f49f58bc04bb</request-id>
  <transaction-type>purchase</transaction-type>
  <requested-amount currency="USD">0.20</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <email>tech.pdi-gw@wirecard.com</email>
    <address>
      <street1>Any Street</street1>
      <city>Toronto</city>
      <state>ON</state>
      <country>CA</country>
      <postal-code>M2H1C9</postal-code>
    </address>
  </account-holder>
  <card>
   <card-type>visa</card-type>
  </card>
  <cryptogram>
    <cryptogram-value>eyJzaWduYXR1cmUiOiJNRVlDSVFDSVM0QVZRV2ZXTEFBbW56TVZsMXUwckViZnFIM3g0UDhXUVd6K1VrL3dJZ0loQUkvc3oyOHBqVTFBbmluRnlDVGVienAzcXI3ZGs2bXN1WHlZM1JyOCtGbW8iLCJwcm90b2NvbFZlcnNpb24iOiJFQ3YxIiwic2lnbmVkTWVzc2FnZSI6IntcImVuY3J5cHRlZE1lc3NhZ2VcIjpcIjl2RFVMS1JUMUpSWXRTWlZBbkRNR3VCNzJEUFVlb3pVQkJ6NDVmZ2J0bkdrTStRYTFYTThEanI2Q3BhNGxiWDlhOFczWTVhWXppYkNBRWhUWUNuakNLVXV0clp3bHNPYmpNUXJ6a0dPTWhobENkcnU2alFzMnp3ODZCaTVvNkFISThycVg3RFMrcUpSZk9XRmJEM2dHQ1VZVjdBUURUenQveCtNOFkzUkpOeFdIYUdIVE5DNDQ1OHowZHgra2VLWWF6YkJXUWpldXE0bnIzbmdQUkVFa1lXeTN3TFFYb3JjYzZRTUZIa2xJazJ1YzExa2ttWllKRksyU2tGbDQ4SDZ1aGdUeG8ycEJrWkVlR2EyUjVRTjc0NDJ2VHZ4bGxJQW9NMkc3UkNFNmlxODNQSzlaaUNtWURoYXBHaTI0NnpPRG56Z0tiMlFvSXVWS2wrZFRydUowdzdVRkJpRTBFZ3lWVU1iY1JmcjFQaWJtNThHaFhFRU9JTWV6OE55S0s1dFBmdFkwMmRiV3ZpNVFtRisyK2diUFA1Z1h2eCtJRTN1ZVJobGJYOWFmUFo5M1JRVmxKUFkvcWtMYkVIaW1tSkFRVW9HU1lrZTRlSEdRSE9ib2tDaU5WQlg3dTRsVEIzUmNhY1FiNlJ3bGdcXHUwMDNkXFx1MDAzZFwiLFwiZXBoZW1lcmFsUHVibGljS2V5XCI6XCJCSnNaYWdTclowNFl4SmhMbTNhNkhST3dWdkJYRnFnc1NETlc4eEZqU2E1NithdGVHb0l6NHdYc3VFamh2VDllMWNkL2k5VXJqT0t4cEpXUTZzQ0czdGtcXHUwMDNkXCIsXCJ0YWdcIjpcIngxNkU5Y3U1UTZscUhlMENzL0FtZ3drMzcxeGZNZWNsZXAwak5jRWtIeFlcXHUwMDNkXCJ9In0=</cryptogram-value>
    <cryptogram-type>google-pay</cryptogram-type>
  </cryptogram>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard"/>
  </payment-methods>
</payment>
XML Purchase Response (Successful)
 <payment self="https://api-test.wirecard.com:443/engine/rest/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1/payments/9d865c78-4c19-4667-ade5-1c1749417a2a" xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction">
   <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1">9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
   <transaction-id>9d865c78-4c19-4667-ade5-1c1749417a2a</transaction-id>
   <request-id>5d631840-78a8-435a-94e9-f49f58bc04bb</request-id>
   <transaction-type>purchase</transaction-type>
   <transaction-state>success</transaction-state>
   <completion-time-stamp>2018-09-20T14:24:17.000Z</completion-time-stamp>
   <statuses>
      <status code="201.0000" description="3d-acquirer:The resource was successfully created." severity="information"/>
   </statuses>
   <requested-amount currency="USD">0.20</requested-amount>
   <account-holder>
      <first-name>John</first-name>
      <last-name>Doe</last-name>
      <email>tech.pdi-gw@wirecard.com</email>
      <address>
         <street1>Any Street</street1>
         <city>Toronto</city>
         <state>ON</state>
         <country>CA</country>
         <postal-code>M2H1C9</postal-code>
      </address>
   </account-holder>
   <cryptogram>
      <cryptogram-type>google-pay</cryptogram-type>
      <cryptogram-value>eyJzaWduYXR1cmUiOiJNRVlDSVFDSVM0QVZRV2ZXTEFBbW56TVZsMXUwckViZnFIM3g0UDhXUVd6K1VrL3dJZ0loQUkvc3oyOHBqVTFBbmluRnlDVGVienAzcXI3ZGs2bXN1WHlZM1JyOCtGbW8iLCJwcm90b2NvbFZlcnNpb24iOiJFQ3YxIiwic2lnbmVkTWVzc2FnZSI6IntcImVuY3J5cHRlZE1lc3NhZ2VcIjpcIjl2RFVMS1JUMUpSWXRTWlZBbkRNR3VCNzJEUFVlb3pVQkJ6NDVmZ2J0bkdrTStRYTFYTThEanI2Q3BhNGxiWDlhOFczWTVhWXppYkNBRWhUWUNuakNLVXV0clp3bHNPYmpNUXJ6a0dPTWhobENkcnU2alFzMnp3ODZCaTVvNkFISThycVg3RFMrcUpSZk9XRmJEM2dHQ1VZVjdBUURUenQveCtNOFkzUkpOeFdIYUdIVE5DNDQ1OHowZHgra2VLWWF6YkJXUWpldXE0bnIzbmdQUkVFa1lXeTN3TFFYb3JjYzZRTUZIa2xJazJ1YzExa2ttWllKRksyU2tGbDQ4SDZ1aGdUeG8ycEJrWkVlR2EyUjVRTjc0NDJ2VHZ4bGxJQW9NMkc3UkNFNmlxODNQSzlaaUNtWURoYXBHaTI0NnpPRG56Z0tiMlFvSXVWS2wrZFRydUowdzdVRkJpRTBFZ3lWVU1iY1JmcjFQaWJtNThHaFhFRU9JTWV6OE55S0s1dFBmdFkwMmRiV3ZpNVFtRisyK2diUFA1Z1h2eCtJRTN1ZVJobGJYOWFmUFo5M1JRVmxKUFkvcWtMYkVIaW1tSkFRVW9HU1lrZTRlSEdRSE9ib2tDaU5WQlg3dTRsVEIzUmNhY1FiNlJ3bGdcXHUwMDNkXFx1MDAzZFwiLFwiZXBoZW1lcmFsUHVibGljS2V5XCI6XCJCSnNaYWdTclowNFl4SmhMbTNhNkhST3dWdkJYRnFnc1NETlc4eEZqU2E1NithdGVHb0l6NHdYc3VFamh2VDllMWNkL2k5VXJqT0t4cEpXUTZzQ0czdGtcXHUwMDNkXCIsXCJ0YWdcIjpcIngxNkU5Y3U1UTZscUhlMENzL0FtZ3drMzcxeGZNZWNsZXAwak5jRWtIeFlcXHUwMDNkXCJ9In0=</cryptogram-value>
   </cryptogram>
   <ip-address>127.0.0.1</ip-address>
   <descriptor/>
   <payment-methods>
      <payment-method name="creditcard"/>
   </payment-methods>
   <authorization-code>324144</authorization-code>
   <api-id>elastic-api</api-id>
   <provider-account-id>0000003174475EA0</provider-account-id>
</payment>
refund
XML Refund Request (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
    <request-id>371bdfef-649c-4375-b302-71f50c1946d0</request-id>
    <transaction-type>refund-capture</transaction-type>
    <parent-transaction-id>88915dc8-f144-4390-85d1-f7e84cb14a99</parent-transaction-id>
    <requested-amount currency="USD">0.20</requested-amount>
    <ip-address>127.0.0.1</ip-address>
</payment>
XML Refund Response (Successful)
<payment self="https://api-test.wirecard.com:443/engine/rest/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1/payments/a1a788df-e566-44d8-ae1c-149b76e1a3c7" xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction">
   <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1">9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
   <transaction-id>a1a788df-e566-44d8-ae1c-149b76e1a3c7</transaction-id>
   <request-id>371bdfef-649c-4375-b302-71f50c1946d0</request-id>
   <transaction-type>refund-capture</transaction-type>
   <transaction-state>success</transaction-state>
   <completion-time-stamp>2018-09-20T14:22:03.000Z</completion-time-stamp>
   <statuses>
      <status code="201.0000" description="3d-acquirer:The resource was successfully created." severity="information"/>
   </statuses>
   <requested-amount currency="USD">0.20</requested-amount>
   <parent-transaction-id>88915dc8-f144-4390-85d1-f7e84cb14a99</parent-transaction-id>
   <account-holder>
      <first-name>John</first-name>
      <last-name>Doe</last-name>
      <email>tech.pdi-gw@wirecard.com</email>
      <address>
         <street1>Any Street</street1>
         <city>Toronto</city>
         <state>ON</state>
         <country>CA</country>
         <postal-code>M2H1C9</postal-code>
      </address>
   </account-holder>
   <card-token>
      <masked-account-number>411111******1111</masked-account-number>
   </card-token>
   <cryptogram>
      <cryptogram-type>google-pay</cryptogram-type>
   </cryptogram>
   <ip-address>127.0.0.1</ip-address>
   <payment-methods>
      <payment-method name="creditcard"/>
   </payment-methods>
   <parent-transaction-amount currency="USD">0.200000</parent-transaction-amount>
   <authorization-code/>
   <api-id>elastic-api</api-id>
   <provider-account-id>0000003174475EA0</provider-account-id>
</payment>
void
XML Void-Authorization Request (Successful)
<payment xmlns="http://www.elastic-payments.com/schema/payment">
    <merchant-account-id>9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
    <request-id>98dfcc05-6b4b-4925-9c48-2912c37a2317</request-id>
    <transaction-type>void-authorization</transaction-type>
    <parent-transaction-id>b517f83a-a06e-4771-a222-75987557c814</parent-transaction-id>
    <requested-amount currency="EUR">1.01</requested-amount>
    <ip-address>127.0.0.1</ip-address>
</payment>
XML Void-Authorization Response (Successful)
<payment self="https://api-test.wirecard.com:443/engine/rest/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1/payments/a4cc9c9f-9958-442f-b2cd-f7ce9fa68e45" xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction">
   <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/9fcacb0d-b46a-4ce2-867b-6723687fdba1">9fcacb0d-b46a-4ce2-867b-6723687fdba1</merchant-account-id>
   <transaction-id>a4cc9c9f-9958-442f-b2cd-f7ce9fa68e45</transaction-id>
   <request-id>98dfcc05-6b4b-4925-9c48-2912c37a2317</request-id>
   <transaction-type>void-authorization</transaction-type>
   <transaction-state>success</transaction-state>
   <completion-time-stamp>2018-09-20T14:23:24.000Z</completion-time-stamp>
   <statuses>
      <status code="201.0000" description="3d-acquirer:The resource was successfully created." severity="information"/>
   </statuses>
   <requested-amount currency="EUR">1.01</requested-amount>
   <parent-transaction-id>b517f83a-a06e-4771-a222-75987557c814</parent-transaction-id>
   <account-holder>
      <first-name>John</first-name>
      <last-name>Doe</last-name>
      <email>tech.pdi-gw@wirecard.com</email>
      <address>
         <street1>Any Street</street1>
         <city>Toronto</city>
         <state>ON</state>
         <country>CA</country>
         <postal-code>M2H1C9</postal-code>
      </address>
   </account-holder>
   <card-token>
      <masked-account-number>411111******1111</masked-account-number>
   </card-token>
   <cryptogram>
      <cryptogram-type>google-pay</cryptogram-type>
   </cryptogram>
   <ip-address>127.0.0.1</ip-address>
   <payment-methods>
      <payment-method name="creditcard"/>
   </payment-methods>
   <parent-transaction-amount currency="EUR">1.010000</parent-transaction-amount>
   <authorization-code>645276</authorization-code>
   <api-id>elastic-api</api-id>
   <provider-account-id>0000003174475EA0</provider-account-id>
</payment>