Skip to content

Push provisioning Google OPC for Google Pay

Request

Returns the Google opaque payment card (OPC) needed for Unified Android Push Provisioning. It lets Google save the card to the user's Google account. The OPC is an encrypted payload containing the card details: do not parse or modify it, and pass it unchanged to Google's SDK.

Use this together with Push provisioning for Google Pay, which returns the issuer OPC. For Unified Android Push Provisioning, see the Digital wallets guide.

This API is not available for sandbox testing.

Security
UserToken or ClientCredentialsToken
Headers
x-tw-twcard-card-tokenstring, (uuid)required

The card token identifying which card to retrieve the Google OPC for.

Example:a3f90c98-1cd1-4488-9050-2e32c696f8fa
X-External-Correlation-Idstring, (uuid), <= 36 characters

Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.

Example:f47ac10b-58cc-4372-a567-0e02b2c3d479
Bodyapplication/jsonrequired
googleServerSessionIdstringrequired

Server session ID as received in the Google SDK during the push provisioning flow.

Example:"d1c3b8e2-5f0a-4c7e-9a41-6b2f7e8d9c10"
POST
/twcard-data/v1/push-provisioning/encrypted-payload/google-opc
curl -i -X POST \
  https://twcard.wise.com/twcard-data/v1/push-provisioning/encrypted-payload/google-opc \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-External-Correlation-Id: f47ac10b-58cc-4372-a567-0e02b2c3d479' \
  -H 'x-tw-twcard-card-token: a3f90c98-1cd1-4488-9050-2e32c696f8fa' \
  -d '{
    "googleServerSessionId": "d1c3b8e2-5f0a-4c7e-9a41-6b2f7e8d9c10"
  }'

Responses

Google OPC for Google Pay.

Headers
X-External-Correlation-Idstring, (uuid), <= 36 characters

Echoed back when X-External-Correlation-Id was included in the request. Learn more.

Example:"f47ac10b-58cc-4372-a567-0e02b2c3d479"
x-trace-idstring

Unique trace identifier assigned by Wise. Useful when contacting support about a specific request.

Example:"fba501b6d453b96789f52338f019341f"
Bodyapplication/json
googleOpcstring

Google opaque payment card, bound to the googleServerSessionId it was requested with. The response is encoded in Base64.

Example:"eyJraWQiOiIwQk..."
Response
{ "googleOpc": "eyJraWQiOiIwQk..." }