Server-Side Implementation

Creating transactionsAnchorIcon

Using card noncesAnchorIcon

Include the Google Pay card nonce in the Transaction: Sale call on your server: Collect device data from the client and include the DeviceDataFromTheClient in the transaction.
  1. C#
var request = new TransactionRequest {
    Amount = 10.00M,
    PaymentMethodNonce = nonceFromTheClient,
    DeviceData = deviceDataFromTheClient,
    Options = new TransactionOptionsRequest {
        SubmitForSettlement = true
    },
    BillingAddress = new AddressRequest {
        PostalCode = postalCodeFromTheClient
    },
};

Result<transaction> result = gateway.Transaction.Sale(request);

Vaulting Google PayAnchorIcon

Google Pay cards can only be saved to your Vault for specific use cases; see the support article for details.

Vaulting of PayPal accounts from Google Pay is currently not supported. This means the Options.StoreInVault and Options.StoreInVaultOnSuccess options are not supported when creating a transaction.

If your use case is supported, you can store a customer's Google Pay card in your Vault in a few different ways: