I'd like to set my Google pay to accept both authentication modes: "PAN_ONLY" and "CRYPTOGRAM_3DS". Then, during transaction flow, when I get the token, before I process the transaction - how can I check which authentication mode was applied by google out of the 2 without decrypting the token?
Why I want to do that:
- if it's was tokenized in a 'PAN_ONLY' mode, I need to run 3DSecure myself, before processing the transaction
- if it's 'CRYPTOGRAM_3DS' it means that the token is in DPAN mode and then I'd like to decrypt it (as a merchant)
You can request this information in the request with the
CardParameters. assuranceDetailsRequired
parameter. It will be returned as part of theCardInfo.assuranceDetails
response.From https://developers.google.com/pay/api/web/reference/response-objects#assurance-details-specifications