Opaque (i.e., encrypted) payment card sent via client-side push provisioning. It is deliberately named to be similar to the Opaque Payment Card that is already passed through client-side push provisioning to Token Service Providers for the purpose of tokenization.
Here's an example of a clear text JSON request:
{
"protocolHeader": {
"version": 1
},
"validationContext": {
"serverSessionId": "GoogleSession123"
},
"paymentCard": {
"accountNumber": "4321123412341234",
"expiryMonth": "12",
"expiryYear": "29"
}
}
The GoogleOpaquePaymentCard
is encrypted and signed using PGP. Further, depending on the flow in which it is passed to Google, this value may also be web-safe base64 encoded. This encoding is referred to below as Base64UrlEncode
. In other words, the clear text JSON version of the GoogleOpaquePaymentCard
must be passed through the following functions:
Base64UrlEncode(
PGPSignAndEncrypt(
{
"protocolHeader": {
"version": 1
},
"validationContext": {
"serverSessionId": "GoogleSession123"
},
"paymentCard": {
"accountNumber": "4321123412341234",
"expiryMonth": "12",
"expiryYear": "29"
}
}
)
)
JSON representation |
---|
{ "protocolHeader": { object ( |
Fields | |
---|---|
protocolHeader |
REQUIRED: A header for this message. |
validationContext |
REQUIRED: Context for the push that can be verified. |
paymentCard |
REQUIRED: Payment card details. |
ProtocolHeader
Header object that includes protocol layer fields.
JSON representation |
---|
{ "version": string } |
Fields | |
---|---|
version |
REQUIRED: The version of the JSON API spec used to construct this Google Opaque Payment Card object. The current version will be provided by Google and will change at Google's discretion, but generally only for major (i.e., breaking) changes. |
ValidationContext
Fields that allow Google to validate the push is valid in the given context, for example the expected destination. This information will be compared to other unsigned information for consistency.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field intended_destination . REQUIRED: The intended "destination" of the push, for validation purposes. Only one destination should be supplied. intended_destination can be only one of the following: |
|
serverSessionId |
A push provisioning session ID given out by a Google server. The destination user is implied by the session. |
PaymentCard
Description of a payment card account (i.e., credit card, debit card, charge card).
JSON representation |
---|
{ "accountNumber": string, "expiryMonth": string, "expiryYear": string } |
Fields | |
---|---|
accountNumber |
REQUIRED: The account number itself (i.e., the FPAN). |
expiryMonth |
REQUIRED: Expiration month, formatted |
expiryYear |
REQUIRED: Expiration year, formatted |