Samples

For All Payment Methods

XML
XML Purchase Request (Successful)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>9105bb4f-ae68-4768-9c3b-3eda968f57ea</merchant-account-id>
  <request-id>fb78df4a-9784-4fea-bd3c-1038e031ad56</request-id>
  <transaction-type>purchase</transaction-type>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <email>john.doe@test.com</email>
    <phone>+1(1)4161234567</phone>
    <address>
      <street1>123 anystreet</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card>
    <account-number>4444333322221111</account-number>
    <expiration-month>12</expiration-month>
    <expiration-year>2020</expiration-year>
    <card-type>visa</card-type>
    <card-security-code>123</card-security-code>
  </card>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
XML Purchase Response (Successful)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment"
self="https://api-test.wirecard.com:443/engine/merchants/9105bb4f-ae68-4768-9c3b-3eda968f57ea/payments/6c770e46-36a0-11e5-b074-005056a96a54">

  <merchant-account-id ref="https://api-test.wirecard.com:443/engine/merchants/9105bb4f-ae68-4768-9c3b-3eda968f57ea">
  9105bb4f-ae68-4768-9c3b-3eda968f57ea</merchant-account-id>
  <transaction-id>6c770e46-36a0-11e5-b074-005056a96a54</transaction-id>
  <request-id>fb78df4a-9784-4fea-bd3c-1038e031ad56</request-id>
  <transaction-type>purchase</transaction-type>
  <transaction-state>success</transaction-state>
  <completion-time-stamp>2015-07-30T09:50:35.000Z</completion-time-stamp>
  <statuses>
    <status code="201.0000" description="3d-acquirer:The resource was successfully created."
    severity="information" />
  </statuses>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
    <email>john.doe@test.com</email>
    <phone>+1(1)4161234567</phone>
    <address>
      <street1>123 anystreet</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card-token>
    <token-id>4672942444021111</token-id>
    <masked-account-number>444433******1111</masked-account-number>
  </card-token>
  <ip-address>127.0.0.1</ip-address>
  <descriptor />
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
  <authorization-code>106079</authorization-code>
  <api-id>elastic-api</api-id>
</payment>
JSON
JSON Purchase Request (Successful)
{
  "payment": {
    "merchant-account-id": {
      "value": "9105bb4f-ae68-4768-9c3b-3eda968f57ea"
    },
    "request-id": "fb78df4a-9784-4fea-bd3c-1038e031ad56",
    "transaction-type": "purchase",
    "requested-amount": {
      "value": 1.01,
      "currency": "USD"
    },
    "account-holder": {
      "first-name": "John",
      "last-name": "Doe",
      "email": "john.doe@test.com",
      "phone": "+1(1)4161234567",
      "address": {
        "street1": "123 anystreet",
        "city": "Brantford",
        "state": "ON",
        "country": "CA"
      }
    },
    "card": {
      "account-number": "4444333322221111",
      "expiration-month": 12,
      "expiration-year": 2020,
      "card-security-code": "123",
      "card-type": "visa"
    },
    "ip-address": "127.0.0.1",
    "payment-methods": {
      "payment-method": [
        {
          "name": "creditcard"
        }
      ]
    }
  }
}
JSON Purchase Response (Successful)
{
  "payment": {
    "merchant-account-id": {
      "value": "9105bb4f-ae68-4768-9c3b-3eda968f57ea",
      "ref": "https://api-test.wirecard.com:443/engine/merchants/9105bb4f-ae68-4768-9c3b-3eda968f57ea"
    },
    "transaction-id": "6c770e46-36a0-11e5-b074-005056a96a54",
    "request-id": "fb78df4a-9784-4fea-bd3c-1038e031ad56",
    "transaction-type": "purchase",
    "transaction-state": "success",
    "completion-time-stamp": 1438249835000,
    "statuses": {
      "status": [
        {
          "value": "",
          "code": "201.0000",
          "description": "3d-acquirer:The resource was successfully created.",
          "severity": "information"
        }
      ]
    },
    "requested-amount": {
      "value": 1.01,
      "currency": "USD"
    },
    "account-holder": {
      "first-name": "John",
      "last-name": "Doe",
      "email": "john.doe@test.com",
      "phone": "+1(1)4161234567",
      "address": {
        "street1": "123 anystreet",
        "city": "Brantford",
        "state": "ON",
        "country": "CA"
      }
    },
    "card-token": {
      "token-id": "4672942444021111",
      "masked-account-number": "444433******1111"
    },
    "ip-address": "127.0.0.1",
    "descriptor": "",
    "payment-methods": {
      "payment-method": [
        {
          "name": "creditcard"
        }
      ]
    },
    "authorization-code": "106079",
    "api-id": "elastic-api",
    "self": "https://api-test.wirecard.com:443/engine/merchants/9105bb4f-ae68-4768-9c3b-3eda968f57ea/payments/6c770e46-36a0-11e5-b074-005056a96a54"
  }
}

Credit Card Only

Transaction Simulation
XML Purchase Request (Failure)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>07edc10b-d3f9-4d12-901f-0db7f4c7e75c</merchant-account-id>
  <request-id>9ab09625-12cb-4deb-b856-2feea2645dcb</request-id>
  <transaction-type>purchase</transaction-type>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>RYKGJ123VDEYORMZS456</last-name>
    <email>john.doe@test.com</email>
    <phone>+1(416)1112222</phone>
    <address>
      <street1>500.1053</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card>
    <account-number>4444333322221111</account-number>
    <expiration-month>12</expiration-month>
    <expiration-year>2020</expiration-year>
    <card-type>visa</card-type>
    <card-security-code>123</card-security-code>
  </card>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
XML Purchase Response (Failure)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<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/07edc10b-d3f9-4d12-901f-0db7f4c7e75c/payments/ce7e0750-78c7-438f-a949-841115b7815d">

  <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/07edc10b-d3f9-4d12-901f-0db7f4c7e75c">
  07edc10b-d3f9-4d12-901f-0db7f4c7e75c</merchant-account-id>
  <transaction-id>ce7e0750-78c7-438f-a949-841115b7815d</transaction-id>
  <request-id>9ab09625-12cb-4deb-b856-2feea2645dcb</request-id>
  <transaction-type>purchase</transaction-type>
  <transaction-state>failed</transaction-state>
  <completion-time-stamp>2018-07-10T10:23:48.000Z</completion-time-stamp>
  <statuses>
    <status code="500.1053"
    description="The acquirer returned Declined. Please check with Issuer, or use different card."
    severity="error" />
    <status code="100.5555" description="test Transaction" severity="information" />
  </statuses>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>RYKGJ123VDEYORMZS456</last-name>
    <email>john.doe@test.com</email>
    <phone>+1(416)1112222</phone>
    <address>
      <street1>500.1053</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card-token>
    <token-id>4193258203791111</token-id>
    <masked-account-number>444433******1111</masked-account-number>
  </card-token>
  <ip-address>127.0.0.1</ip-address>
  <order-detail>609669634369250</order-detail>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
Timeout Simulation

The following request shows a transaction status simulation for a successful credit card transaction that responded after 60,000 milliseconds.

XML Purchase Timeout Simulation Request (Successful)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
  <merchant-account-id>07edc10b-d3f9-4d12-901f-0db7f4c7e75c</merchant-account-id>
  <request-id>6d324e6b-0d97-43bb-8688-52aee348655d</request-id>
  <transaction-type>purchase</transaction-type>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>RYKGJ123VDEYORMZS456</last-name>
    <email>john.doe@test.com</email>
    <phone />
    <address>
      <street1>201.0000,timeout-60000</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card>
    <account-number>4444333322221111</account-number>
    <expiration-month>12</expiration-month>
    <expiration-year>2020</expiration-year>
    <card-type>visa</card-type>
    <card-security-code>123</card-security-code>
  </card>
  <ip-address>127.0.0.1</ip-address>
</payment>
XML Purchase Timeout Simulation Response (Successful)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<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/07edc10b-d3f9-4d12-901f-0db7f4c7e75c/payments/a480eb86-7e14-4654-99cd-6eeccba4c02c">

  <merchant-account-id ref="https://api-test.wirecard.com:443/engine/rest/config/merchants/07edc10b-d3f9-4d12-901f-0db7f4c7e75c">
  07edc10b-d3f9-4d12-901f-0db7f4c7e75c</merchant-account-id>
  <transaction-id>a480eb86-7e14-4654-99cd-6eeccba4c02c</transaction-id>
  <request-id>6d324e6b-0d97-43bb-8688-52aee348655d</request-id>
  <transaction-type>purchase</transaction-type>
  <transaction-state>success</transaction-state>
  <completion-time-stamp>2018-07-10T10:27:55.000Z</completion-time-stamp>
  <statuses>
    <status code="201.0000" description="The resource was successfully created."
    severity="information" />
    <status code="100.5555" description="test Transaction" severity="information" />
  </statuses>
  <requested-amount currency="USD">1.01</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>RYKGJ123VDEYORMZS456</last-name>
    <email>john.doe@test.com</email>
    <phone />
    <address>
      <street1>201.0000,timeout-60000</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card-token>
    <token-id>4193258203791111</token-id>
    <masked-account-number>444433******1111</masked-account-number>
  </card-token>
  <ip-address>127.0.0.1</ip-address>
  <order-detail>613464402851117</order-detail>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
Referenced Transaction Simulation
XML Initial Zero Dollar Authorization Request (Successful)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>c3671cf9-c775-4e39-8d67-31ce24094682</merchant-account-id>
  <request-id>89c20f59-23cd-4be6-a121-d6b2499aa604</request-id>
  <transaction-type>authorization-only</transaction-type>
  <requested-amount currency="USD">0</requested-amount>
  <account-holder>
    <first-name>John</first-name>
    <last-name>qmNmRoMhhgxtlLhvETNhaKHimBbwiJRy</last-name>
    <email>john.doe@test.com</email>
    <phone>+1(416)1112222</phone>
    <address>
      <street1>AO-201.0000,P-500.1053</street1>
      <city>Brantford</city>
      <state>ON</state>
      <country>CA</country>
    </address>
  </account-holder>
  <card>
    <account-number>4444333322221111</account-number>
    <expiration-month>12</expiration-month>
    <expiration-year>2020</expiration-year>
    <card-type>visa</card-type>
    <card-security-code>123</card-security-code>
  </card>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
XML Initial Zero Dollar Authorization Response (Successful)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment"
self="http://10.0.0.142:8080/engine/rest/merchants/c3671cf9-c775-4e39-8d67-31ce24094682/payments/30c061a8-862f-11e2-bd92-00163e6e1b2f">

  <merchant-account-id ref="http://10.0.0.142:8080/engine/rest/config/merchants/c3671cf9-c775-4e39-8d67-31ce24094682">
  c3671cf9-c775-4e39-8d67-31ce24094682</merchant-account-id>
  <transaction-id>30c061a8-862f-11e2-bd92-00163e6e1b2f</transaction-id>
  <request-id>89c20f59-23cd-4be6-a121-d6b2499aa604</request-id>
  <transaction-type>authorization</transaction-type>
  <transaction-state>success</transaction-state>
  <completion-time-stamp>2013-03-06T07:26:41.523Z</completion-time-stamp>
  <statuses>
    <status code="201.0000" description="The resource was successfully created."
    severity="success" />
    <status code="100.5555" description="warning: Your transaction is in test mode"
    severity="information" />
  </statuses>
  <requested-amount currency="USD">1.01</requested-amount>
  <card-token>
    <token-id>4671168333191111</token-id>
    <masked-account-number>444433******1111</masked-account-number>
  </card-token>
  <ip-address>127.0.0.1</ip-address>
  <descriptor>demo descriptor</descriptor>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
  <authorization-code>153620</authorization-code>
</payment>
XML Following Purchase Request (Failure)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment">
  <merchant-account-id>c3671cf9-c775-4e39-8d67-31ce24094682</merchant-account-id>
  <request-id>89c20f59-23cd-4be6-a121-d6b2499aa604</request-id>
  <transaction-type>purchase</transaction-type>
  <parent-transaction-id>30c061a8-862f-11e2-bd92-00163e6e1b2f</parent-transaction-id>
  <requested-amount currency="USD">1.01</requested-amount>
  <ip-address>127.0.0.1</ip-address>
</payment>
XML Following Purchase Response (Failure)
<?xml version="1.0" encoding="utf-8"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment"
self="http://10.0.0.142:8080/engine/rest/merchants/c3671cf9-c775-4e39-8d67-31ce24094682/payments/30c061a8-862f-11e2-bd92-00163e6e1b2f">

  <merchant-account-id ref="http://10.0.0.142:8080/engine/rest/config/merchants/c3671cf9-c775-4e39-8d67-31ce24094682">
  c3671cf9-c775-4e39-8d67-31ce24094682</merchant-account-id>
  <transaction-id>30c061a8-862f-11e2-bd92-00163e6e1b2f</transaction-id>
  <request-id>89c20f59-23cd-4be6-a121-d6b2499aa604</request-id>
  <transaction-type>purchase</transaction-type>
  <transaction-state>failed</transaction-state>
  <completion-time-stamp>2013-03-06T07:26:41.523Z</completion-time-stamp>
  <statuses>
    <status code="500.1053"
    description="The acquirer returned Declined. Please check with Issuer, or use different card."
    severity="error" />
    <status code="100.5555" description="warning: Your transaction is in test mode"
    severity="information" />
  </statuses>
  <requested-amount currency="USD">1.01</requested-amount>
  <card-token>
    <token-id>4671168333191111</token-id>
    <masked-account-number>444433******1111</masked-account-number>
  </card-token>
  <ip-address>127.0.0.1</ip-address>
  <payment-methods>
    <payment-method name="creditcard" />
  </payment-methods>
</payment>
Custom URL: