Apple Pay

Apple Pay provides a highly secure, instant payment experience. It allows users to securely store their card details on a Secure Element built into their Apple product and to use those card details to make payments. It can be used in-app to provide payment for real-world goods and services.

It is possible to test Apple Pay in the Global Payments sandbox environment. The amount specified in the request will map the tokenized data in the transaction to one of our test cards. For example, an amount of 10.00 will map to the successful Visa test card. Please see Apple Pay Testing within the Technical Resources section for further detail.

apple-pay
  • Apple Pay is supported by Global Payments; however, it is not supported by all Acquirers. Please contact a member of our support team for more information.
  • Supports 2-exponent amounts e.g. GBP £10.00. Currencies with a different exponent such as exponent 0 (e.g. 10 JPY) or exponent 3 (e.g. 10.000 BHD) are currently not supported.
  • A shortened version of the Apple Pay token has been used throughout this section.
info

Sample request

<?xml version="1.0" encoding="UTF-8"?>
<request timestamp="20180614095601" type="auth-mobile">
  <merchantid>MerchantId</merchantid>
  <account>internet</account>
  <orderid>N6qsk4kYRZihmPrTXWYS6g</orderid>
  <mobile>apple-pay</mobile>
  <amount currency="EUR">1999</amount>
  <token>{"version":"EC_v1","data":"Ft+dvMNzlcy6WNB+zerKtkh/RWW4RWW4yXIRgmM3WC/FYEC6Z+OJEzir2sDyzDkjIUJ0TFCQd/QAAAAAAAA==","header":{"ephemeralPublicKey":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWdNhNAHy9kO2Kol33kIh7k6wh6E/lxriM46MR1FUrn7SHugprkaeFmWKZPgGpWgZ+telY/G1+YSoaCbR5YSoaCbR57bdGA==","transactionId":"fd88874954acdb299c285f95a3202ad1f330d3fd4ebc22a864398684198644c3","publicKeyHash":"h7WnNVz2gmpTSkHqETOWsskFPLSj31e3sPTS2cBxgrk="}}</token>
  <autosettle flag="1"/>
  <sha1hash>3231aebe4b60fe23fda3c0ad1b26f03b3ea081e2</sha1hash>
</request>

Google Pay

Google Pay enables customers to use the cards they have stored with their Google account to make quick, easy purchases on merchant websites or in-app. Customers can make use of details they have stored with numerous Google applications including the Play Store, YouTube and saved in their Chrome browser.

It is possible to test Google Pay in the Global Payments sandbox environment. The amount specified in the request will map the tokenized data in the transaction to one of our test cards. For example, an amount of 10.00 will map to the successful Visa test card. Please see Google Pay Testing within the Useful Resources section for further detail

google-pay
  • Google Pay is supported by Global Payments; however, it is not supported by all Acquirers. For more information, contact a member of our support team.
  • Supports 2-exponent amounts e.g. GBP £10.00. Currencies with a different exponent such as exponent 0 (e.g. 10 JPY) or exponent 3 (e.g. 10.000 BHD) are not supported.
  • A shortened version of the Google Pay token has been used throughout this section.
info

Sample request

<?xml version="1.0" encoding="UTF-8"?>
<request timestamp="20180614095601" type="auth-mobile">
  <merchantid>MerchantId</merchantid>
  <account>internet</account>
  <orderid>N6qsk4kYRZihmPrTXWYS6g</orderid>
  <amount currency="EUR">1999;</amount>
  <mobile>pay-with-google</mobile>
  <token>{"signature":"MEUCIQDapDDJyf9lH3ztEWksgAjNe...AXjW+ZM+Ut2BWoTExppDDPc1a9Z7U\u003d","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"VkqwkFuMdXp...TZQxVMnkTeJjwyc4\\u003d\",\"ephemeralPublicKey\":\"BMglUoKZWxgB...YCiBNkLaMTD9G4sec\\u003d\",\"tag\":\"4VYypqW2Q5FN7UP87QNDGsLgc48vAe5+AcjR+BxQ2Zo\\u003d\"}"}</token>
  <autosettle flag="1"/>
  <sha1hash>3231aebe4b60fe23fda3c0ad1b26f03b3ea081e2</sha1hash>
</request>

Generate hash

Follow the steps in this section to build the request security hash, concatenate the specified fields and hash them using the SHA-1 algorithm, concatenate the hashed string with your Shared Secret, hash it again, and add the resulted string to the request.

generate-hash

In addition to SHA-1, you can also generate your hash using SHA-256. The resulting hash should be placed in the <sha256hash> tag instead of the <sha1hash> tag. For more information, contact our support team at ecomsupport@globalpay.com.

info

Build the request hash

Use the dropdown below to select a request type: Apple Pay or Google Pay. After making a selection, the steps on how to build the request hash for that type are provided.

Check hash

Follow the steps in this section to build the response security hash, concatenate the specified fields and hash them using the SHA-1 algorithm, concatenate the hashed string with your Shared Secret, hash it again, and add the resulted string to the request.

Check the response hash

Use the dropdown below to select a request type: Apple Pay or Google Pay. After making a selection, the steps on how to check the response hash for that type are provided.

check-hash
Show Content Nav
On
Tags