forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * add changelog --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com> Co-authored-by: Patrick Powers <patickpowers@hey.com>
3.0 KiB
3.0 KiB
Google Pay Decrypted Token Data
Details shared by Google for the merchant to be shared with PayPal. This is required to process the transaction using the Google Pay payment method.
Structure
GooglePayDecryptedTokenData
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
messageId |
?string |
Optional | A unique ID that identifies the message in case it needs to be revoked or located at a later time. Constraints: Minimum Length: 1, Maximum Length: 250, Pattern: ^.*$ |
getMessageId(): ?string | setMessageId(?string messageId): void |
messageExpiration |
?string |
Optional | Date and time at which the message expires as UTC milliseconds since epoch. Integrators should reject any message that's expired. Constraints: Minimum Length: 13, Maximum Length: 13, Pattern: \d{13} |
getMessageExpiration(): ?string | setMessageExpiration(?string messageExpiration): void |
paymentMethod |
string(GooglePayPaymentMethod) |
Required | The type of the payment credential. Currently, only CARD is supported. Constraints: Minimum Length: 4, Maximum Length: 4 |
getPaymentMethod(): string | setPaymentMethod(string paymentMethod): void |
card |
GooglePayCard |
Required | The payment card used to fund a Google Pay payment. Can be a credit or debit card. | getCard(): GooglePayCard | setCard(GooglePayCard card): void |
authenticationMethod |
string(GooglePayAuthenticationMethod) |
Required | Authentication Method which is used for the card transaction. Constraints: Minimum Length: 1, Maximum Length: 50 |
getAuthenticationMethod(): string | setAuthenticationMethod(string authenticationMethod): void |
cryptogram |
?string |
Optional | Base-64 cryptographic identifier used by card schemes to validate the token verification result. This is a conditionally required field if authentication_method is CRYPTOGRAM_3DS. Constraints: Minimum Length: 1, Maximum Length: 2000 |
getCryptogram(): ?string | setCryptogram(?string cryptogram): void |
eciIndicator |
?string |
Optional | Electronic Commerce Indicator may not always be present. It is only returned for tokens on the Visa card network. This value is passed through in the payment authorization request. Constraints: Minimum Length: 1, Maximum Length: 256, Pattern: ^.*$ |
getEciIndicator(): ?string | setEciIndicator(?string eciIndicator): void |
Example (as JSON)
{
"message_id": "message_id4",
"message_expiration": "message_expiration8",
"payment_method": "CARD",
"card": {
"name": "name6",
"number": "number6",
"expiry": "expiry4",
"last_digits": "last_digits0",
"type": "UNKNOWN"
},
"authentication_method": "PAN_ONLY",
"cryptogram": "cryptogram0",
"eci_indicator": "eci_indicator4"
}