Managing Google Pay Authentication Types
Additional controls are available for Google Pay on
Unified Checkout
.
When you enable Google Pay on Unified Checkout
, you can specify optional
parameters that define the types of card authentication you receive from Google Pay. To manage the types of credentials that Google Pay sends, use this expanded payment type object
within the
allowedPaymentTypes
section of the sessions request: { "type": "GOOGLEPAY", "options": { "allowedAuthMethods": "<authentication type>" } }
The expanded payment type object has these parameters:
- type: Defines the type of payment option.
- options: Contains specific payment types parameters.For Google Pay, use the new data elementallowedAuthMethodswithin theoptionssection of the payment types object to specify the authentication type you will receive from Google Pay. Possible values:
- PAN_ONLY: Google returns primary account number (PAN) values
- CRYPTOGRAM_3DS: Google returns fully authenticated network token values.
REST Example: Specify Only PAN Authentication Accepted from Google
This sessions request example specifies that Google Pay is to send only PAN
values.
"allowedPaymentTypes": [ "PANENTRY" { "type": "GOOGLEPAY", "options": { "allowedAuthMethods": "PAN_ONLY" } }, "CLICKTOPAY", "PAZE", "CHECK" ]
REST Example: Simple Google Pay Request
This sessions request example specifies that Google Pay can send all authentication
types.
"allowedPaymentTypes": [ "PANENTRY", "GOOGLEPAY", "CLICKTOPAY", "PAZE", "CHECK" ]