Skip to main content

Documentation

Add Card to Google Pay - Google Pay Push Provisioning

Add a card to a Google Pay wallet using Google Pay Push Provisioning.

Note

  • PCI certification is required for this method as it contains PCI data.

  • The response returns the getEncryptedPaymentInstrument string, which is used to add the card to the Google pay wallet by using the Google Pay pushTokenizeRequest method. For more information refer to the Google Pay Provisioning developer documentation.

    • card_id

    • ID of the card. String starting with card_.

    • client_wallet_provider

    • The token requester’s Id (TRID).

    • client_wallet_account_id

    • Client provided consumer ID that identifies the wallet account holder entity.

    • client_device_id

    • Stable device identification set by the wallet provider. Could be a computer identifier or an ID tied to hardware such as TEE_ID or SE_ID.

    • PaymentInstrumentData

    • The base64 encoded string that contains the encrypted object for Push Provisioning. Required for adding the card to the Google Pay wallet by using the Google Pay pushTokenizeRequest method. For more information refer to the Google Pay Provisioning developer documentation.

    • UserAddress

    • Includes the address and contact information of the user. It has the following structure of optional fields:

  • /v1/issuing/cards/:card_id/card_tokens/google_pay

  • Add Card to Google Pay (First step

  • curl -X post
    https://sandboxapi.rapyd.net/v1/issuing/cards/card_34d9a74d81ba015f96a8066938d5fd37/card_tokens/google_pay
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
        "client_wallet_provider": "40010075001",
        "client_wallet_account_id": "4CEBB556CBB31B94",
        "client_device_id": "je-UCHgwQ97Icy-wrI_f48PU"
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "e673ef1c-965d-480e-9770-13505ac4cd06"
        },
        "data": {
            "PaymentInstrumentData": "eJhbGciOiJBMjU2R0NS1cB-0PS1aQxS659j3KI.cO_1wM0o22-c0YXT.I-2nN6dIarNkJJov_DFJeW2G7kxt7IS4nSwNma0-iboEXa_0gLx4KSpcDAX1UYdYNbghcdEr-ax6V6XlNK4JvOB8S5xOE3Z3ctcGY0wPvb_ObY2JcgYqomjC4mm8ti1NpTF7WJwp_co9meS-0qXG8QbMBkWZTDX2_FkSTy2_SBvayTilvweibdCy9IetA0eulg1xbt8MgH8DDFKRMluD6Ekq6qC6NGcwxNHN0pg8CWwRLdnXCdyCE0_j_Icwl2onM-QcKGP0NBj-v73aNWHsrzM0I9w7lqstb4-lAlOSlcx7lWeBkKHZxeo62Q0zMgiaVoldVRDscatumeS-llMbI8tJsPkp_eXDLC3Q-3mV3020kIdSiin_5kpqy7mGYk0veo-iDcDsEJhUtXAhb4ldL7PDHYVC_JHAnHLrcMvgWNOwyVZt5VhZlvFOmgoMwyl-56vkwOFMUYhtJ0dFk3w5RVXogvzliYRmNLph3uLg9xnmUg6m.0ynVvcpF35fzAfZsjp6RZQ",
            "UserAddress": {
                "$": {
                    "xmlns:b": "http://schemas.datacontract.org/2004/07/VALITOR.Issuing.Service.Core.DataType.BusinessEntities"
                },
                "b:Address1": [
                    "123 Main Street"
                ],
                "b:Address2": [
                    ""
                ],
                "b:AdministrativeArea": [
                    ""
                ],
                "b:CountryCode": [
                    "840"
                ],
                "b:Locality": [
                    "Anytown"
                ],
                "b:Name": [
                    "Sales Engineer"
                ],
                "b:PhoneNumber": [
                    "+97255555555"
                ],
                "b:PostalCode": [
                    "12345"
                ]
            }
        }
    }