Google Pay Authorizations
This section shows you how to make a successful authorization request.
After you send the request, check the response messages to make sure that the request was
successful.
A 200-level HTTP response code indicates
success.
Follow-on Transactions
After the initial transaction is complete, additional follow-on transactions can be
made as Merchant-Initiated Transactions (MITs).
Endpoint
Production:
POST
https://nabgateway-api.nab.com.au
/pts/v2/paymentsTest:
POST
https://nabgateway-api-test.nab.com.au
/pts/v2/paymentsRequired Fields for a Google Pay Authorization
Include these required fields to request a successful authorization.
- orderInformation.amountDetails.currency
- orderInformation.amountDetails.totalAmount
- orderInformation.billTo.address1
- orderInformation.billTo.administrativeArea
- orderInformation.billTo.country
- orderInformation.billTo.email
- orderInformation.billTo.firstName
- orderInformation.billTo.lastName
- orderInformation.billTo.locality
- orderInformation.billTo.postalCode
- paymentInformation.fluidData.value
- Set to the string value generated from the full wallet response.
- processingInformation.paymentSolution
- Set to012.
REST Example: Google Pay
Authorization
Request
{ "processingInformation": { "paymentSolution": "012" }, "paymentInformation": { "fluidData": { "value": "ABCDEFabcdefABCDEFabcdef0987654321234567" } }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "123 Happy Street", "locality": "Ann Arbor", "administrativeArea": "MI", "postalCode": "48104-2201", "country": "US", "email": "" } } }
Response for a Successful Request
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/6805343125426255503955/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/6805343125426255503955" }, "capture": { "method": "POST", "href": "/pts/v2/payments/6805343125426255503955/captures" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6805343125426255503955", "orderInformation": { "amountDetails": { "authorizedAmount": "102.21", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "pointOfSaleInformation": { "terminalId": "111111" }, "processorInformation": { "approvalCode": "888888", "networkTransactionId": "123456789619999", "transactionId": "123456789619999", "responseCode": "100", "avs": { "code": "X", "codeRaw": "I1" } }, "reconciliationId": "65301815QFTXZAN6", "status": "AUTHORIZED", "submitTimeUtc": "2023-04-03T15:05:12Z" }