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.
For information about response codes, see .

Follow-on Transactions

After the initial transaction is complete, additional follow-on transactions can be made as Merchant-Initiated Transactions (MITs).
For more information on how to process MITs, see
Merchant-Initiated Transactions
.

Endpoint

Production:
POST
https://api.cybersource.com
/pts/v2/payments
Test:
POST
https://apitest.cybersource.com
/pts/v2/payments

Authorizing a Payment

To request an authorization for a Google Pay transaction:
  1. Set the field to the string value generated from the full wallet response.
  2. Set the field to your token requestor ID.
  3. Set the
    payment_solution
    field to
    012
    .
Google Pay Authorizations

Required 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 to
012
.
Google Pay Authorizations

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": "
test@cybs.com
" } } }
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" }
Google Pay Authorizations