Follow the steps in this tutorial to add Google Pay to your Android application
and configure it to accept payment cards.

## Step 1: Define your payment configuration

### Configure your Google Pay API version

Declare the version of the Google Pay API that your application uses. The major and minor versions
affect the fields expected in each passed object and are included in the response.

Create a base request object that contains properties that are present in all other request
objects.

### Kotlin

```kotlin
private val baseRequest = JSONObject()
    .put("apiVersion", 2)
    .put("apiVersionMinor", 0)
    
```

### Java

```java
private static JSONObject getBaseRequest() throws JSONException {
  return new JSONObject()
      .put("apiVersion", 2)
      .put("apiVersionMinor", 0);
}
    
```

### Request a payment token for your payment provider

Google encrypts information about a payer's selected card for secure processing by a payment
provider.

### Kotlin

```kotlin
private fun gatewayTokenizationSpecification(): JSONObject {
    return JSONObject().apply {
        put("type", "PAYMENT_GATEWAY")
        put("parameters", JSONObject(mapOf(
                "gateway" to "example",
                "gatewayMerchantId" to "exampleGatewayMerchantId")))
    }
}
    
```

### Java

```java
private static JSONObject getGatewayTokenizationSpecification() throws JSONException {
  return new JSONObject()
      .put("type", "PAYMENT_GATEWAY")
      .put("parameters", new JSONObject()
          .put("gateway", "example")
          .put("gatewayMerchantId", "exampleGatewayMerchantId")
      );
}
    
```

> [!IMPORTANT]
> **Tip:** `example` is a valid gateway name in the `TEST` environment. If you want to try out the API, you can leave the code sample as-is. When you use the `example` gateway, the API doesn't return card data capable of a transaction, but the user flow looks the same.

Replace <var translate="no">example</var> and <var translate="no">exampleGatewayMerchantId</var> with
the appropriate values for your payment provider. Use the following table to find the specific
`gateway` and `gatewayMerchantId` values for your payment provider:

| Gateway | Parameters and documents |
|---|---|
| 9Pay | ``` "gateway": "ninepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.9pay.vn/google-pay/redirect) |
| 91APP PAYMENTS | ``` "gateway": "payments91app" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.91app.com/zh-tw/admin-api/payments/introduction/) |
| A360 | ``` "gateway": "a360" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ipgtest.posted.co.rs/IPGDemoPlugin/demoPlugin.html?msgName=GPayDocumentation) |
| A-IT | ``` "gateway": "aitecomm" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://a-it.team/solutions/ecommerce) |
| ABA PayWay | ``` "gateway": "ababank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.payway.com.kh/developers/google-pay/) |
| accept.blue | ``` "gateway": "acceptblue" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.accept.blue/google-pay) |
| ACI | ``` "gateway": "aciworldwide" "gatewayMerchantId": "YOUR_ENTITY_ID" ``` [Developer docs](https://docs.aciworldwide.com/tutorials/mobile-sdk/google-pay) |
| ACpay | ``` "gateway": "acpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.acpay.com.tw/google-pay-%E9%96%8B%E7%99%BC%E8%80%85%E6%96%87%E4%BB%B6/) |
| Acquired.com | ``` "gateway": "acquired" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.acquired.com/paymentmethods/googlepay) |
| Adyen | ``` "gateway": "adyen" "gatewayMerchantId": "YOUR_MERCHANT_ACCOUNT_NAME" ``` [Developer docs](https://docs.adyen.com/developers/payment-methods/google-pay) |
| African Payment Solution (PTY) Ltd t/a LekkaPay | ``` "gateway": "lekkapay" "gatewayMerchantId": "YOUR_MERCHANT_ACCOUNT_NAME" ``` [Developer docs](https://africanpaymentsolutions.com) |
| AI Fintech | ``` "gateway": "aifintech" "gatewayMerchantId": "YOUR_MERCHANT_ACCOUNT_NAME" ``` [Developer docs](https://docs.aifintech.com.ua/payment-methods/digital-wallets/google-pay/index.html) |
| Airba Pay | ``` "gateway": "airbapay"" "gatewayMerchantId": "YOUR_MERCHANT_ACCOUNT_NAME" ``` [Developer docs](https://api.airbapay.kz/f3/api/v1/images/pay-manuals/Technical_documentation.pdf) |
| Airvend | ``` "gateway": "airvend" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://googlepay.airvend.ng/) |
| Airwallex | ``` "gateway": "airwallex" "gatewayMerchantId": "YOUR_MERCHANT_ACCOUNT_NAME" ``` [Developer docs](https://www.airwallex.com/docs/online-payments__global__google-paytm) |
| Akua | ``` "gateway": "akua" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://akua.la/) |
| Akurateco | ``` "gateway": "akuratecolab" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.akurateco.com/checkout_integration#google-pay) |
| Alfa-Bank | ``` "gateway": "alfabank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pay.alfabank.ru/ecommerce/instructions/merchantManual/pages/index/integration_schemes.html#oplata_s_ispolzovaniem_google_pay) |
| Algoritma | ``` "gateway": "algoritma" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://algoritma.az/en/payment-solutions/) |
| Allinpay | ``` "gateway": "allinpayintl" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.allinpayintl.com/) |
| AllPayments | ``` "gateway": "allpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://vp.ru/storage/b/2018/05/30/Shljuz_VsePlatezhi._Rukovodstvo_Merchanta.pdf) |
| alticepay | ``` "gateway": "alticepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.wallet.pt/en/procheckout/google-pay.html) |
| Amaryllis | ``` "gateway": "amaryllis" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.amaryllispay.com/) |
| AMO FINTECH LLC | ``` "gateway": "amofintech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://wiki.amofintech.com/uk/GPay) |
| Amwal Pay | ``` "gateway": "amwalalraqamia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Anedot | ``` "gateway": "anedot" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.anedot.com/knowledge/google-pay) |
| ApcoPay | ``` "gateway": "apcopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.apimatic.io/apidocs/apcopayapi/v/1_0#/http/plugins/google-pay) |
| APPEX | ``` "gateway": "epos" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://appex.ru/services/internet-acquiring/) |
| Armaghast | ``` "gateway": "armaghast" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.armaghast.club/manual/guides/googlepay/) |
| Armenian Card OJSC | ``` "gateway": "epgarca" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.arca.am/backend/static/documents/1755083114252-file_hy-Google%20Pay-Merchant%20Manual%20(2).pdf) |
| AsiaBill | ``` "gateway": "asiabill" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Assist | ``` "gateway": "assist" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.assist.ru/o-podklyuchenii/docs/files/TokenPayeng.pdf) |
| Assist Belarus | ``` "gateway": "belassist" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.assist.ru/pages/viewpage.action?pageId=5767308) |
| Assist Kazakhstan | ``` "gateway": "assistkz" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://assist.kz/o-podklyuchenii/docs/files/TokenPayeng.pdf) |
| Aurus | ``` "gateway": "auruspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.aurusinc.com/client_releases/googlepay) |
| Authorize.net | ``` "gateway": "authorizenet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.authorize.net/api/reference/features/in-app.html#Google_Pay) |
| Axerve | ``` "gateway": "gestpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.axerve.com/soap/alternative-payments/google-pay/) |
| AXS | ``` "gateway": "axsasia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| azericardgpay | ``` "gateway": "azericardgpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.azericard.com/en#googlepay) |
| B2B Soft Pay | ``` "gateway": "b2bsoftpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cdn-b2b-prod.b2bsoft.com/b2b-public-instructions/GPay-Integration/Google-Pay-Integration-Guide-for-Merchants_b2bsoftpay_11062025.pdf) |
| Bancstac | ``` "gateway": "bancstac" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://bancstac.com) |
| Bank 131 | ``` "gateway": "bank131" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.131.ru/docs/ru/payments/payment-integration-google-pay/) |
| Bank Muscat | ``` "gateway": "bankmuscat" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://spayuatmars.bmtest.om/Googlepay/integration/index.html) |
| BANK RBK | ``` "gateway": "bankrbkkzpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://backend.bankrbk.kz/storage/documents/files/68ede392bd9dd.pdf) |
| Bank Vostok | ``` "gateway": "bankvostok" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ecom.vostok.bank/documentation/en/ecommerce_documentation.pdf) |
| Barclaycard | ``` "gateway": "barclayssmartpayadvance" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.barclaycard.co.uk/content/dam/barclaycard/documents/business/standalone/smartpay/google-pay-integration-guide.pdf) |
| Barion | ``` "gateway": "barion" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.barion.com/Google_Pay#) |
| Basis Theory | ``` "gateway": "basistheory" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.basistheory.com/docs/api/orchestration/google-pay) |
| BCC.KZ | ``` "gateway": "bccpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://documenter.getpostman.com/view/23274245/VVXGTBh1#f0119085-5a9f-41a6-9308-95004c091f66) |
| bePaid | ``` "gateway": "ecomcharge" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.bepaid.by/en/google_pay/integration) |
| Bereke Bank | ``` "gateway": "berekepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sandbox.berekebank.kz/en/integration/api/tokenized_payments.html#google_pay) |
| Better Payment Germany GmbH | ``` "gateway": "betterpayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dashboard.betterpayment.de/docs) |
| Billing Systems | ``` "gateway": "billingsystems" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.bisys.ru/doc/shop-api/?shell#gpay) |
| Bindo Labs Limited | ``` "gateway": "bindo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apidoc.bindo.co/#3-google-pay-developer-document) |
| bisys.kz | ``` "gateway": "bisysgpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.bisys.kz/doc/kz-shop-api/#gpay-vvedenie) |
| Bizon.one | ``` "gateway": "bizonone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.bizon.one/08.01/api-payment-gateway/google-pay-tm) |
| Bizzon | ``` "gateway": "bizzon" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.bizzon.com/hc/en-gb/articles/360011118098-Setting-up-Google-Pay) |
| Blackstone Merchant Services | ``` "gateway": "blackstone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://app.blackstoneonline.com) |
| Blocks | ``` "gateway": "blocks" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://getblocks.notion.site/Integrating-Google-Pay-with-Blocks-5917582a5f644ca0aa1031bb0810a476) |
| Bluefin | ``` "gateway": "bluefin" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.bluefin.com/docs/google-pay) |
| Bluefin Europe | ``` "gateway": "bluefineurope" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.bluefin.com/tecs/docs/google-paytm) |
| Blue Media | ``` "gateway": "bluemedia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://bluemedia.pl/developers/google-pay) |
| BlueSnap | ``` "gateway": "bluesnap" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.bluesnap.com/docs/google-pay) |
| Blusky Technology Services | ``` "gateway": "bluskysvcpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.bluskysvc.com/google-pay-developer-documentation/) |
| BORICA | ``` "gateway": "borica" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.borica.bg/attachments/BobsProduct/57/docs/Google-Pay-for-Virtual-Merchants-EN.pdf) |
| BoxPay | ``` "gateway": "boxpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.boxpay.tech/docs/checkout-integration/google-pay-integration-guide/) |
| BPC | ``` "gateway": "bpcpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.bpcbt.com/integration/api/tokenized_payments.html#google-pay) |
| BR-DGE | ``` "gateway": "comcarde" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.br-dge.io/docs/features-google-pay) |
| Braintree | ``` "gateway": "braintree" "braintree:apiVersion": "v1" "braintree:sdkVersion": "braintree.client.VERSION" "braintree:merchantId": "YOUR_BRAINTREE_MERCHANT_ID" "braintree:clientKey": "YOUR_BRAINTREE_TOKENIZATION_KEY" ``` [Developer docs](https://www.braintments.com/features/google-pay) |
| Braspag | ``` "gateway": "cielo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://braspag.github.io//en/manual/ewallets) |
| BridgerPay | ``` "gateway": "bridgerpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.bridgerpay.com/docs/google-pay) |
| Bonum | ``` "gateway": "bonumpsp" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://psp.bonum.mn/google-pay/) |
| BT Pay | ``` "gateway": "btpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cdn.btpay.bt.com/docs/google-pay-integration.html) |
| Buckaroo | ``` "gateway": "buckaroo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.buckaroo.io/docs/google-pay) |
| Buya | ``` "gateway": "buya" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://getbuya.com/googlepay.html) |
| CAKE | ``` "gateway": "cakepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.cake.vn/bahn/google-pay/) |
| Callpay | ``` "gateway": "callpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://agent.callpay.com/api-documentation) |
| Card Access Services Pty Ltd | ``` "gateway": "cardaccess" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.cardaccess.com.au) |
| CARDAQ | ``` "gateway": "cardaq" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.cardaq.co.uk/Payments/payment-methods) |
| CardCom | ``` "gateway": "cardcom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.cardcom.solutions/hc/he/articles/10268181547154) |
| CardConnect | ``` "gateway": "cardconnect" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.cardconnect.com/google-pay) |
| Cardknox | ``` "gateway": "cardknox" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.cardknox.com/mobile-wallets/google-pay-hosted-checkout) |
| cardlink | ``` "gateway": "cardlink" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.cardlink.gr/documentation_categories/digital-wallets/#Google-Pay%E2%84%A2) |
| Cardstream | ``` "gateway": "crst" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cardstream.com/gateway-capabilities/alternative-payment-methods/google-pay/) |
| Cashflows | ``` "gateway": "cashflowsgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.cashflows.com/solutions/google-pay?hs_preview=uhaeAoux-50425444123) |
| Cathay United Bank | ``` "gateway": "cathaybk" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.cathaybk.com.tw/) |
| CCAvenue UAE | ``` "gateway": "ccavenueuae" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ccavenue.ae/downloads_mcpg/Google-Pay-CCAvenue-Integration.pdf) |
| CCV | ``` "gateway": "ccv" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.myccv.eu/documentation/payment_api/online_payments/payment_methods/google_pay/) |
| Cecabank | ``` "gateway": "cecabank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://comercios.ceca.es/webapp/ConsTpvVirtWeb/ConsTpvVirtS?modo=mostrarAyuda&pagina=ayuda_google_pay) |
| Celerispay | ``` "gateway": "celerispay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.celerispay.com/#/Google-pay) |
| CentralPay | ``` "gateway": "centralpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc-api.centralpay.net/google-pay) |
| Centrobill LTD | ``` "gateway": "centrobill" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://readme.centrobill.com/docs/get-started-with-google-pay-integration) |
| CetraPay | ``` "gateway": "cetrapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cetrapay.com/gpay/CetraPay_Google_Pay_Integration_Guide.pdf) |
| Chargehive | ``` "gateway": "chargehive" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://chargehive.com/google-pay) |
| CharityEngine | ``` "gateway": "charityengine" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.charityengine.net/HelpCenter/GooglePay) |
| Chase Merchant Services | ``` "gateway": "chase" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://secure.paymentech.com/devcenter/products) |
| Checkout.com | ``` "gateway": "checkoutltd" "gatewayMerchantId": "YOUR_PUBLIC_KEY" ``` [Developer docs](https://docs.checkout.com/payments/payment-methods/wallets/google-pay) |
| CIBPAY MMC | ``` "gateway": "cibpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://wiki.cibpay.io/en/public-api/google-pay-integration) |
| City Bank PLC | ``` "gateway": "citybank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.citybankplc.com/ctlinks/CityBank_Merchant_Documentaion_GooglePay.pdf) |
| CityPay | ``` "gateway": "citypay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://citypay.github.io/api-docs/paylink/#google-pay) |
| Clink | ``` "gateway": "clink" "gatewayMerchantId": "NA" ``` [Developer docs](https://docs.clinkbill.com/guides/payments/google_pay) |
| Cloud9 Payment Gateway (C9PG) | ``` "gateway": "c9pg" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://c9pg.com/payment-gateway-integrate/) |
| CloudPayments | ``` "gateway": "cloudpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cloudpayments.ru/wiki/integration/products/googlepay) |
| CloudWalk | ``` "gateway": "cloudwalk" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ajuda.infinitepay.io/pt-BR/articles/9741853-como-pagar-um-link-de-pagamento-com-o-google-pay) |
| CNP Processing Kazakhstan | ``` "gateway": "processingkz" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.processing.kz/google-pay) |
| Coinflow | ``` "gateway": "coinflow" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://coinflow.cash) |
| Comax (Native Data LTD) | ``` "gateway": "comaxpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://comax-public-files.s3.eu-west-1.amazonaws.com/google_pay_integration_guide_EN.pdf) |
| Computop | ``` "gateway": "computop" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.computop.com/us/solutions/online-payments/e-wallets/google-pay/) |
| ConcordPay | ``` "gateway": "concordpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pay.concord.ua/docs/docs/en/GooglePay/) |
| Conekta | ``` "gateway": "conektagpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.conekta.com/docs/welcome) |
| Connectum | ``` "gateway": "connectum" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://connectum.eu/gpay/) |
| ConnexPay | ``` "gateway": "connexpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.connexpay.com/docs/google-pay) |
| CoralPay | ``` "gateway": "coralpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.coralpay.com/developer/docs/google-pay) |
| Corefy | ``` "gateway": "paycoreio" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://corefy.com/docs/integration/payment-methods/google-pay/) |
| Coriunder Limited | ``` "gateway": "coriunder" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Corvus Pay | ``` "gateway": "corvuspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cps.corvuspay.com/documentation/documents/Google_Pay_integration_eng.pdf) |
| Credit2000 | ``` "gateway": "credit2000" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.credit2000.co.il/) |
| Credorax | ``` "gateway": "credorax" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://epower.credorax.com/) |
| CrossPay | ``` "gateway": "crosspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.crosspay.net/#tag/Google-Paytm) |
| Cross Switch | ``` "gateway": "crossswitch" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cross-switch.com/) |
| CSG Forte | ``` "gateway": "csgforte" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.forte.net/devdocs/a_checkout/digital_wallets.htm?Highlight=digital+wallet#Google) |
| CTBC Bank | ``` "gateway": "ctbcbank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ctbcbank.com) |
| CURO Payments | ``` "gateway": "curopayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.curopayments.com/docs/api/?rest_Creditcard#CreditCard-EWallets) |
| CYBERBIZ | ``` "gateway": "cyberbizpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.cyberbiz.io/support/?p=2620) |
| Cybersource | ``` "gateway": "cybersource" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.cybersource.com/en-us/support/technical-documentation/apis-and-integration.html#GooglePay) |
| danube.pay | ``` "gateway": "danubepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.danubepay.com) |
| Datacap Systems, Inc. | ``` "gateway": "datatrans" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://datacapsystems.github.io/Wallet-Google/) |
| Datatrans | ``` "gateway": "datatrans" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.datatrans.ch/showcase/authorisation/google-pay) |
| Debia | ``` "gateway": "debia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.debia.co/) |
| DECTA | ``` "gateway": "decta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs |
| Dejavoo | ``` "gateway": "denovosystempay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ipospays.com/google-pay-developer-documentation) |
| DEUNA | ``` "gateway": "deuna" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.deuna.com/docs/integration-google-pay) |
| Deutsche Bank AG | ``` "gateway": "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs |
| Deutsche Bank -- Merchant Solutions | ``` "gateway": "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.db.com/apidocumentation/apimerchantsolution/about-this-documentation) |
| DG Financial Technology, Inc. | ``` "gateway": "veritrans" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.veritrans.co.jp/payment/googlepay.html) |
| Dibsy | ``` "gateway": "dibsy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.dibsy.dev/google-pay) |
| Digital Commerce Bank | ``` "gateway": "dcpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dccentral.dc-payments.ca) |
| Digital Finance | ``` "gateway": "digitalfinance" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.digital-finance.com.ua/services/googlepay/google_pay) |
| Dintero | ``` "gateway": "dintero" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.dintero.com/docs/checkout/google-pay/google-pay-overview) |
| dLocal | ``` "gateway": "dlocal" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.dlocal.com/guides/google-pay) |
| DNA Payments | ``` "gateway": "dnapayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.dnapayments.com/docs/ecommerce/checkout/integration-guide/google-pay/#card-parameter-support) |
| Dojo | ``` "gateway": "dojo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.connect.paymentsense.cloud/ConnectE/GooglePay) |
| DOKU | ``` "gateway": "dokudjakarta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.doku.com/accept-payments/doku-checkout/additional-feature/google-pay-tm) |
| Doremi-Tech | ``` "gateway": "doremitech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doremi-tech.com/DOREMI-TECH/) |
| Dotpay | ``` "gateway": "dotpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.dotpay.pl/developer/doc/google-pay/en/) |
| e-SiTef - Software Express | ``` "gateway": "softwareexpress" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://esitef-homologacao.softwareexpress.com.br/api/docs/ing/googlepay/) |
| easycard | ``` "gateway": "easycard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://github.com/EasycardNG/API/blob/main/GooglePay.md) |
| EasyPay | ``` "gateway": "easypay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apidocs.easypay.ua/) |
| Easypay EU | ``` "gateway": "easypaypt" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.easypay.pt/#section/Payment-Methods) |
| EBANX | ``` "gateway": "ebanx" "gatewayMerchantId": "YOUR_PUBLIC_INTEGRATION_KEY" ``` [Developer docs](https://business.ebanx.com/google-pay) |
| EBizCharge | ``` "gateway": "ebizcharge" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ebizcharge.com) |
| eCard | ``` "gateway": "ecard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecard.pl/oferta/google-pay) |
| Ecart Pay | ``` "gateway": "ecartpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ecartpay.com/docs/google-paytm-integration-guide) |
| Ecentric Payment Systems | ``` "gateway": "ecentric" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecentric.readme.io/docs/google-pay) |
| Ecomm Merchant Solutions | ``` "gateway": "ecommmerchantsolutions" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecomm365.vercel.app/developers/google-pay#integrate) |
| ECOMMPAY | ``` "gateway": "ecommpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.ecommpay.com/en/pm_googlepay_gate.html#pm_googlepay_gate) |
| Ecopaynet | ``` "gateway": "ecopaynet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ecopaynet.com/es/metodos-pago/google-pay) |
| ECPay | ``` "gateway": "ecpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| ECRYPT INC | ``` "gateway": "ecrypt" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ecrypt.com/google-pay) |
| EdfaPay | ``` "gateway": "edfapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://edfapay.com/) |
| eftcorporation | ``` "gateway": "eftcorporation" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.eftcorp.com/docs/payments-use-cases#google_pay) |
| eGHL | ``` "gateway": "eghl" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://e-ghl.com/gallery/google-pay-campaign/) |
| Elavon (Converge) | ``` "gateway": "convergepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.elavon.com/docs/converge/1.0.0/integration-guide/processing-options/googlepay) |
| Emerchantpay | ``` "gateway": "emerchantpay" "gatewayMerchantID": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.emerchantpay.com/google-pay-integration) |
| emspay | ``` "gateway": "emsonline" "gatewayMerchantID": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.online.emspay.eu/rest-api/server-to-server/google-pay) |
| Encoded | ``` "gateway": "encoded" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.encoded.co.uk/google-pay/) |
| epay | ``` "gateway": "epay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.epay.eu/get-started/set-up-epay/payment-methods/google-pay) |
| EPAYJSC | ``` "gateway": "epayjsc" "gatewayMerchantID": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.epayjsc.com/Epay-IntegrationDocument-Google_Pay_20250801.pdf) |
| EpicPay | ``` "gateway": "epicpay" "gatewayMerchantID": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.epicpay.com/Docs/PaymentAPI#Api_Transaction_GooglePay) |
| Espago | ``` "gateway": "espago" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://start.espago.com/en/docs/1330629/google_pay-description) |
| Etisalat | ``` "gateway": "etisalatpaymentgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| EuPlatesc - Europayment Services SRL | ``` "gateway": "euplatesc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://manager.euplatesc.ro/v3/index.php?page=docs&v=gpay) |
| Euronet Merchant Services (epay) | ``` "gateway": "emspi" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://epayworldwide.gr/en/googlepay/) |
| Evertec Placetopay S.A.S | ``` "gateway": "placetopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.placetopay.dev/payments/wallets/googlepay/) |
| Evervault | ``` "gateway": "evervault" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.evervault.com/payments/google-pay) |
| EveryPay S.A. | ``` "gateway": "EveryPay S.A." "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.everypay.gr/other-payment-methods/google-pay/) |
| EVONET | ``` "gateway": "cardinfolink" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.evonetonline.com/docs/google-pay) |
| EVOPAY | ``` "gateway": "EVOPAY" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cdn.rozetkapay.com/public-docs/index.html) |
| Evo Payment Gateway | ``` "gateway": "evopaymentgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| exactly.com | ``` "gateway": "exactly" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://exactly.com/processing/mobile-payments) |
| Exact Payments | ``` "gateway": "exactpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.e-xact.com/hc/en-us/articles/12945346125083-Configuring-Google-Pay-on-Payment-Pages) |
| Fat Zebra | ``` "gateway": "fatzebra" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fatzebra.com/docs/android-app-integration) |
| Fenige | ``` "gateway": "fenige" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paytool-api-dev.fenige.pl/fenige-paytool.html) |
| Fexco payUnite | ``` "gateway": "fexco" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://drive.google.com/file/d/1I45gWijqHXo_zxJCWshEp8awuf5EW6FX/view) |
| Fibonatix | ``` "gateway": "fibonatixparagon" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paragon.online/#12-1-google-pay) |
| Financial Line | ``` "gateway": "finline" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.finline.io/payment-methods/google-pay) |
| Finanso UA | ``` "gateway": "finansoua" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://finansoua.com.ua/googlepay) |
| finby | ``` "gateway": "finby" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://finby.com/) |
| fincode byGMO | ``` "gateway": "fincode" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.fincode.jp/payments/googlepay/) |
| FINEXUS | ``` "gateway": "finexus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sandbox.finexusgroup.com/myxaas/docs/PayMaster-MPI/googlepay/) |
| Finix | ``` "gateway": "finix" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.finixpayments.com/#google-pay) |
| Finrelay | ``` "gateway": "finrelay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.finrelay.com/references/google-pay/index.html) |
| FireAntPay | ``` "gateway": "fireantpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.fireantpay.com/developer/en/GooglePay.html) |
| First American by Deluxe | ``` "gateway": "firstpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.deluxe.com/docs/deluxe-payment-platform/dfrdpcueb68yb-google-pay) |
| Fiuu (formerly Razer Merchant Services \& MOLPay) | ``` "gateway": "molpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://fiuu.com/google-pay/) |
| FIS Biller Solutions | ``` "gateway": "fisglobalbsp" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://bsptest.metavante.com/dut/agreement.html) |
| Fiserv | ``` "gateway": "fiserv" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.fiserv.com/product/CommerceHub/docs/?path=docs/Online-Mobile-Digital/Wallets-AltPayments/Google-Pay/Google-Pay.md&branch=main) |
| Fiserv | ``` "gateway": "fiservipg" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fiserv.dev/public/docs/wallets) |
| Flintn | ``` "gateway": "flintn" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://flintn.com/) |
| Flitt | ``` "gateway": "flitt" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.flitt.com/api/googlepay-getting-started/) |
| Flow pagos | ``` "gateway": "flow_pay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Fluid Pay | ``` "gateway": "fluidpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sandbox.fluidpay.com/docs/walletjs/#overview) |
| Flyway | ``` "gateway": "flyway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://showdoc.inflyway.com/web/#/23/377) |
| FM Finance LTD | ``` "gateway": "fmfinanceltd" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.fmpay.me/Technical_integration_with_Google_Pay.pdf) |
| ForteBank | ``` "gateway": "fortebank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://main.storage-object.pscloud.io/Provedenie_oplaty_s_ispolzovaniem_Google_Pay_v_5_ddd23330f3.pdf) |
| Forward | ``` "gateway": "forward" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.getfwd.com) |
| FPAY | ``` "gateway": "fizzapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fpay.az/googlePay/) |
| Fractal | ``` "gateway": "fractal" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fractalpay.com/googlepay) |
| Freedom Finance Bank | ``` "gateway": "axayscom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://acq.ffinpay.ru/acq-company-web/resources/index/api_doc.pdf) |
| FreedomPay | ``` "gateway": "freedompay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://corporate.freedompay.com/advanced-commerce-platform/consumer-experience/) |
| FreedomPay.Money | ``` "gateway": "payboxmoney" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paybox.money/?lang=en#/g2g/pay#content-google-pay) |
| Freepay | ``` "gateway": "freepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://mw.freepay.dk/content/api.html#section/Acquirers/Google-Pay-tm) |
| Frisbii | ``` "gateway": "Frisbii" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.frisbii.com/docs/google-pay) |
| Frontstream | ``` "gateway": "frontstreampayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.frontstream.com/developers/secure-electronics-payments-api/documentation) |
| Fung Payments | ``` "gateway": "fungpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fungpayments.com/payment-methods/google-pay) |
| Gatewell Payments | ``` "gateway": "gatewellpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.gwp.digital/payin-googlepay-v2) |
| GBPayments | ``` "gateway": "gbpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.gbpayments.io/dev/google-pay/) |
| geidea | ``` "gateway": "geidea" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.geidea.net/docs/google-pay) |
| Getnet | ``` "gateway": "getnetpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.globalgetnet.com/en/products/online-payments/regional-api?doc=google-pay#integration-overview) |
| GETTRX | ``` "gateway": "globalelectronictechnology" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.edgepay.io/docs/google-pay-1) |
| Gkash | ``` "gateway": "gkash" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.gkash.my/google-pay) |
| Global One Pay | ``` "gateway": "globalonepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Global Payments | ``` "gateway": "globalpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.globalpaymentsinc.com/en/accept-payments/in-person/globalmpos/google-pay) |
| globalpaymentsinc | ``` "gateway": "globalpaymentsinc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.globalpaymentsintegrated.com/#/landing/content/%2Fportal%2Fweb%2Fapi%2Fpayfields-google-pay%2F1252?top=PayFields&l1=Google%20Pay&l2=&l3=#googlepay-payfields) |
| GMO Payment Gateway | ``` "gateway": "gmopg" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.gmo-pg.com/service/mulpay/google-pay/) |
| GoDaddy Payments | ``` "gateway": "godaddypayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.godaddy.com/payments) |
| Good Idea Technologies | ``` "gateway": "git" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.gitpay.tech/alternative_payment_methods_API/googlepayintegration.html) |
| GoPay | ``` "gateway": "gopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.gopay.com/cs/tema/integrace-platebni-brany/nastaveni-a-funkcionality-plateb/jak-spustit-google-pay-na-platebni-brane) |
| GP Webpay | ``` "gateway": "gpwebpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Gravity Payments | ``` "gateway": "gravitypayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.gravitypayments.com/docs/emergepay/digital-wallets/) |
| Gr4vy | ``` "gateway": "gr4vy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.gr4vy.com/guides/features/google-pay/overview) |
| Gsurf Tecnologia em Pagamentos Eletrônicos Ltda | ``` "gateway": "gsurf" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.google.com/pay/api/android/guides/www.gsurfnet.com) |
| Halyk Bank | ``` "gateway": "halykbank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://epayment.kz/docs/Google%20Pay%20additional%20info) |
| Helcim | ``` "gateway": "helcim" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.helcim.com/article/helcim-commerce-online-store-configuring-store-settings-google-pay/) |
| HiPay | ``` "gateway": "hipay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.hipay.com/online-payments/payment-means/google-pay) |
| HIPS | ``` "gateway": "hips" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.hips.com/docs/g-pay-google-pay-or-android-pay) |
| HiTrust | ``` "gateway": "hitrustpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.hitrustpay.com.tw/page_gpay.html) |
| hutko | ``` "gateway": "hutko" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.hutko.org/uk/docs/page/google-pay/) |
| Hyp | ``` "gateway": "hyp" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://googlepayhyp.docs.apiary.io/) |
| icard | ``` "gateway": "icardwallet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://icard.com/en/business/google-pay) |
| iCount | ``` "gateway": "iCount" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.icount.co.il/features/google-pay) |
| iCredit | ``` "gateway": "rivhit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://icredit.rivhit.co.il/management/GooglePayDocumentation.aspx) |
| IDid Tecnologia Ltda | ``` "gateway": "idid" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ididsecure.net/gateway/v1/#wallets-google-pay%E2%84%A2-post) |
| iKhokha | ``` "gateway": "ikhokha" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://emergemobile.atlassian.net/wiki/external/ZDI2MGZkMDhkZTc0NGM2YmE2YjQ0NTYzMzRiYjU3ODA) |
| IMOJE | ``` "gateway": "imoje" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.imoje.pl/) |
| Impaya | ``` "gateway": "impayarus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://impaya.ru/google-pay/) |
| Infofintech S A S | ``` "gateway": "infofintech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tran-dev.flexipay.com.co/swagger-ui.html?urls.primaryName=Google-Pay-English) |
| Inovio Payments | ``` "gateway": "inoviopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://helpdesk.inoviopay.com/hc/en-us/articles/40007831345051-Google-Pay-Gateway-Configuration) |
| InPlat | ``` "gateway": "inplat" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://protocols.inplat.ru/api/_static/latex/InPlat_API_v.1.14.6.pdf) |
| InstaMed | ``` "gateway": "instamed" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.instamed.com/consumer-payments/google-pay/) |
| IntaSend Solutions Limited | ``` "gateway": "intasend" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.intasend.com/docs/google-pay) |
| intella | ``` "gateway": "intella" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://intella2.gitbook.io/scan2pay/appendix/google-pay-tm-developer-guide-integrating-with-scan2pay-olpay) |
| IntellectMoney | ``` "gateway": "intellectmoney" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://wiki.intellectmoney.ru/pages/viewpage.action?pageId=50724886) |
| InTempo Software DBA Curbstone | ``` "gateway": "curbstone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.curbstone.io/docs/google-pay) |
| Interactive Transaction Solutions | ``` "gateway": "interactivets" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.interactivets.com/) |
| Interpay | ``` "gateway": "interpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecomweb.interpay.sa/home/googlepay) |
| Interpay Llp | ``` "gateway": "interpaypro" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://interpay.kz) |
| Interswitch Payment Gallery | ``` "gateway": "interswitch" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.interswitchgroup.com/docs/pay-with-google) |
| Intervale | ``` "gateway": "intervale" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://intervale.kz/OpenAPI_Intervale_googlePay.pdf) |
| ioka fintech | ``` "gateway": "ioka" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ioka.kz/en/ioka-api/google-pay/) |
| iPay88 | ``` "gateway": "ipay88" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ipay88.com/) |
| IPSI | ``` "gateway": "ipsi" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.iframe.ipsi.com.au/?path=/docs/google-pay-google-pay-button--default) |
| iQmetrix | ``` "gateway": "iqmetrixpaymentservicesgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.iqmetrix.com/lp/mobile-payment-technology) |
| iVeri Payment Technologies | ``` "gateway": "iveri" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.iveri.co.za/docs/enterprise-developer-guide-58#digital-wallets-2155-0) |
| IXOPAY | ``` "gateway": "ixopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://gateway.ixopay.com/documentation/connectors#googlepay) |
| JagoLink Limited | ``` "gateway": "jagolink" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payment-docs.cogolinks.com/google-pay/) |
| JetPay | ``` "gateway": "jetpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.jetpay.kz/en/pm_pay_partner_kz.html) |
| jpmmps | ``` "gateway": "jpmmps" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://documentation.jpmchase.com/) |
| JudoPay | ``` "gateway": "judopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Juspay | ``` "gateway": "juspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://juspay.io/sea/docs/google-pay-sea/docs/google-pay/an-overview) |
| JustiFi | ``` "gateway": "justifi" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.justifi.tech/payments/googlePay) |
| KapitalBank | ``` "gateway": "eCommerceKapitalBank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pg.kapitalbank.az/docs) |
| Kassa | ``` "gateway": "kassacom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kassa.com/docs/api/#provedenie-oplati-s-google-pay) |
| kassa24pay | ``` "gateway": "kassa24pay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://business.kassa24.kz/documentation/payment-methods-via-apple-pay-and-google-pay-in-kassa-24-business) |
| KastaPay | ``` "gateway": "kastapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kastapay.ua/google-pay.html) |
| Kazpost JSC | ``` "gateway": "qazpost" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| KimNganPay | ``` "gateway": "kimngan" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kimnganpay.com.vn/san-pham/tai-lieu) |
| Kineox | ``` "gateway": "kineox" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kineox.com/google-pay/) |
| Klix by Citadele | ``` "gateway": "klix" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.klix.app/payment-methods/#google-paytm) |
| Koin | ``` "gateway": "koin" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://api-docs.koin.com.br/v2.2/docs/wallets) |
| KOMOJU | ``` "gateway": "komoju" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.komoju.com/en/docs/integration-guides/google-pay/using-google-pay) |
| KPay Group | ``` "gateway": "kpaygroup" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://online.payment.docs.kpay-group.com/#/en-us/v4/api/googlepay/GooglePay) |
| Kronor.io | ``` "gateway": "kronor" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.kronor.io/google-pay) |
| Kyrgyzkommertsbank | ``` "gateway": "kkbpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://proxy2.kkb.kg/kkb_docs/google_pay_docs.html) |
| Lapsa Payments | ``` "gateway": "lapsapayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://lapsa.pro/documents/Google_technical_integration.pdf) |
| Lemonway | ``` "gateway": "lemonway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://documentation.lemonway.com/reference/moneyins-google-pay) |
| LHV Pank | ``` "gateway": "lhvpank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://merchant.lhv.ee/help/en/articles/11484394-google-pay-integration-guide) |
| Liberty | ``` "gateway": "liberty" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cdn.lb.ge/libertybank/files/02/54/03/89TljMMSB0aL1KIINNBJaA/txpg-lb-manual-1-0-12-2.pdf) |
| Life Pay | ``` "gateway": "lifepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://confluence.life-pay.ru/pages/viewpage.action?pageId=69009431) |
| Limepay | ``` "gateway": "limepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.limepay.com.au/developer-portal/wallet-payments/) |
| LINK4TECH | ``` "gateway": "googlekykeons" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kykeons.link4.tech) |
| Linkly | ``` "gateway": "linkly" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://bpoint.com.au/developers/v5/api/txn/authkey/googlepay) |
| LiqPay | ``` "gateway": "liqpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.liqpay.ua/documentation/en/api/acquiring/googlepay/) |
| LITIQON OÜ | ``` "gateway": "nuvex" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.myaupay.com/) |
| Littlepay | ``` "gateway": "littlepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.littlepay.io/checkout/wallet-payments/#integrate-with-google-pay) |
| LogPay | ``` "gateway": "logpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tst2.logpay.de/atlas/documents/lpy-atlas-v2.0_wallet-api-b2c_googlepay_EN.html) |
| Loyale | ``` "gateway": "loyale" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.loyale.us/) |
| lynck | ``` "gateway": "lynck" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.lynck.de/api/#google-pay) |
| Lyra | ``` "gateway": "lyra" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://lyra.com/fr/google-pay/) |
| MADFIN TECH | ``` "gateway": "madfingate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://madfin.api-docs.info/) |
| Magnetiq Bank | ``` "gateway": "magnetiq" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://old.magnetiqbank.com/wp-content/uploads/2024/05/google-pay-implementation-instruction_v2.pdf) |
| maib | ``` "gateway": "maibecomm" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.maib.md/en/persoane-juridice/acceptare-plati/e-commerce#custom-37/) |
| MakeCommerce (Maksekeskus) | ``` "gateway": "maksekeskus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://makecommerce.net/google-pay-integration-guide/) |
| Maksu GMBH | ``` "gateway": "maksupayeu" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.maksupay.com/docs/VPOS-MerchantIntegrationV5.pdf) |
| Mandarin | ``` "gateway": "mandarin" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mandarin.io/pay-russian/google_pay.html) |
| Market Pay | ``` "gateway": "marketpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://market-pay.com/en/documentation) |
| Mastercard Payment Gateway Services | ``` "gateway": "mpgs" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://na.gateway.mastercard.com/api/documentation/integrationGuidelines/supportedFeatures/pickPaymentMethod/devicePayments/GooglePay.html) |
| Maya | ``` "gateway": "mayaph" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.maya.ph/reference/google-pay) |
| Mellifera | ``` "gateway": "mellifera" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://mellifera.team/Mellifera_Technical_integration_with_GooglePay.pdf) |
| MerchantE | ``` "gateway": "merchante" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.merchante.com/hubfs/User%20Guides/Using%20Google%20Pay%20with%20MerchantE_June2023.pdf) |
| Midtrans | ``` "gateway": "midtrans" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.midtrans.com/reference/google-pay) |
| Menahel4uGoCredit | ``` "gateway": "menahel4ugocredit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Merchant Warrior | ``` "gateway": "merchantwarrior" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dox.merchantwarrior.com/digital-wallets-web#google-pay-prerequisites) |
| Minsait Payments Systems | ``` "gateway": "minsaitpaymentsgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://cms.minsaitpayments.com/wp-content/uploads/2023/04/OSP-Google-Pay-DOC-v3_ENG_MPS.pdf) |
| MITEC | ``` "gateway": "mitecmx" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://wppsandbox.mit.com.mx/gpay.jsp) |
| MIXPLAT | ``` "gateway": "mixplat" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mixplat.ru/scenarios/#38-google-pay) |
| Mobbex | ``` "gateway": "mobbex" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| MOBI.Money | ``` "gateway": "mobimoney" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://mobi-corp.ru/googlepay/) |
| Modulbank | ``` "gateway": "modulbank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://modulbank.ru/support/googlepay) |
| Mollie | ``` "gateway": "mollie" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mollie.com/docs/google-pay) |
| Mondido | ``` "gateway": "mondido" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.mondido.com/en/blog/google-pay-documentation/) |
| Monei | ``` "gateway": "monei" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.monei.com/docs/payment-methods/google-pay/#google-pay-direct-api-integration) |
| monek | ``` "gateway": "monek" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.monek.com/) |
| Moneris | ``` "gateway": "moneris" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.moneris.com/Documentation/NA/E-Commerce%20Solutions/Google%20Pay/Overview) |
| Moneta | ``` "gateway": "moneta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Monext | ``` "gateway": "monext" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payline.atlassian.net/wiki/spaces/DT/pages/1471283926/Google+Pay+-+Integration+EN) |
| MoneyHash | ``` "gateway": "moneyhash" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.moneyhash.io/docs/google-pay) |
| Money.Mail.Ru | ``` "gateway": "moneymailru" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://money.mail.ru/oferta/googlepay) |
| monripayments | ``` "gateway": "monripayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ipg.monri.com/documentation/google-pay.pdf) |
| Moov | ``` "gateway": "moov" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.moov.io/guides/sources/cards/google-pay/) |
| Moyasar | ``` "gateway": "moyasar" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.moyasar.com/guides/google-pay/google-pay-web/) |
| MPay | ``` "gateway": "managepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.managepay.com/managepay/) |
| MSolution | ``` "gateway": "msolution" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://msolution.az/en/docs/google-pay) |
| mstartipg | ``` "gateway": "mstartipg" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://mcheckout.mstart.hr/iCheckOutX/documentation/) |
| MTB BANK, PJSC | ``` "gateway": "mtb" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Multicarta | ``` "gateway": "mulitcarta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://multicarta.ru/internet-ekvayring/google-pay/) |
| MultiSafepay | ``` "gateway": "multisafepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.multisafepay.com/payment-methods/google-pay/) |
| Mundipagg | ``` "gateway": "mundipagg" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mundipagg.com/docs/google-pay-tm) |
| MyCheck | ``` "gateway": "mycheck" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://www.mycheck.io/google-pay) |
| Mycar Pay | ``` "gateway": "mycarpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://mycarpay.kz/googlepayintegration) |
| MyChoice2Pay | ``` "gateway": "mychoice2pay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mychoice2pay.com/docs/api-en/13558d27c8e17-google-pay) |
| MyFatoorah | ``` "gateway": "myfatoorah" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://myfatoorah.readme.io/docs/google-pay-native) |
| MyPay | ``` "gateway": "mypay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| myPOS | ``` "gateway": "mypos" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.mypos.eu/en/google-pay) |
| N\&TS Group | ``` "gateway": "netsgroup" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://netsgroup.com/) |
| NCCC | ``` "gateway": "nccc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.nccc.com.tw) |
| NCR Voyix | ``` "gateway": "ncrpaymentsolutions" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecom-demo.paymentslab.ncrvoyix.com/docs/hpp-integration.html#google-pay) |
| Neolink | ``` "gateway": "neolinkprocessing" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.neolink.io/docs/googlepay) |
| Neon Pay | ``` "gateway": "neonpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.neononepay.com/google-pay/) |
| Neopayment | ``` "gateway": "neopayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://neopayment.com/soluciones/google-pay/) |
| Netopia | ``` "gateway": "netopia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://netopia-payments.com/servicii/google-pay/) |
| NetValve | ``` "gateway": "netvalve" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.netvalve.com/guides/digital-wallets/google-pay) |
| Network International | ``` "gateway": "networkintl" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ngenius-payments.com/reference/google-pay-integration) |
| Newebpay (formerly STPath, Pay2Go) | ``` "gateway": "newebpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.spgateway.com/website/Page/content/download_api) |
| Newtech | ``` "gateway": "newtechmobile" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.newtech.lv/) |
| Nexi | ``` "gateway": "nexi" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecommerce.nexi.it/specifiche-tecniche/pagamentosemplice/altrimetodipagamento/googlepay.html) |
| Nexi | ``` "gateway": "siavpos" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecommerce.nexi.it/specifiche-tecniche/altrimetodipagamento/googlepay.html) |
| Nexi Easy | ``` "gateway": "easy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.nexigroup.com/nexi-checkout/en-EU/docs/google-pay/) |
| NMI | ``` "gateway": "gatewayservices" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.nmi.com/hc/en-gb/articles/360012639192-Google-Pay-with-ChipDNA-Direct) |
| noon payments | ``` "gateway": "noonpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.noonpayments.com/payment-method/googlepay/introduction) |
| Noqoody Pay | ``` "gateway": "noqoodypay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://noqoody.com/googlepay/) |
| North | ``` "gateway": "north" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.north.com/products/online/embedded-checkout/form-integration-guide) |
| Novalnet | ``` "gateway": "novalnet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.novalnet.de/onlinepayments/aboutgooglepay) |
| Nexi Relay | ``` "gateway": "nexirelay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.nexigroup.com/en-EU/) |
| NTT DATA | ``` "gateway": "nttdatahk" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://hk.nttdata.com/payment-acceptance-and-processing) |
| Nuvei | ``` "gateway": "nuvei" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.nuvei.com/documentation/global-guides/google-pay/) |
| Oceanpayment | ``` "gateway": "oceanpayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.oceanpayment.com/) |
| Omise | ``` "gateway": "omise" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.omise.co/googlepay) |
| Omno | ``` "gateway": "omno" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://omno-api.redocly.app/omno-google-pay-full) |
| OneGate | ``` "gateway": "onegate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payments.onegate.co.za/developers/google-pay) |
| One Inc | ``` "gateway": "oneinc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.oneinc.com/developers) |
| Onelya | ``` "gateway": "onelya" "gatewayMerchantId": "YOUR_GATWAY_MERCHANT_ID" ``` [Developer docs](https://www.gateline.net/api/google-pay/) |
| OnePay LTD | ``` "gateway": "onepayltd" "gatewayMerchantId": "YOUR_GATWAY_MERCHANT_ID" ``` [Developer docs](https://doc.onepayltd.kz/) |
| Onerway | ``` "gateway": "ronghan" "gatewayMerchantId": "YOUR_GATWAY_MERCHANT_ID" ``` [Developer docs](https://sandbox-v3-doc.pacypay.com/?java#onerway-v3-0-openapi-google-pay-) |
| OneVision Limited | ``` "gateway": "onevision" "gatewayMerchantId": "YOUR_GATWAY_MERCHANT_ID" ``` [Developer docs](https://docs.onevisionpay.com/) |
| OnPay | ``` "gateway": "onpayio" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://onpay.io/docs/google-pay.html) |
| Opayo by Elavon | ``` "gateway": "opayoelavon" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.elavon.com/products/opayo/v1/google-pay) |
| ONVO | ``` "gateway": "onvopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Orient Commercial Joint Stock Bank (OCB) | ``` "gateway": "ocbcheckout" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| OrkestaPay | ``` "gateway": "orkestapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.orkestapay.com/docs/en/google-pay#google-pay%E2%84%A2) |
| Oschadbank | ``` "gateway": "oschadbank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://3ds.oschadbank.ua/Інтеграція_з_Google_Pay.pdf) |
| Outpayce | ``` "gateway": "outpayce" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| pagarme | ``` "gateway": "pagarme" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.pagar.me/docs/google-pay-tm-guide) |
| PagBank | ``` "gateway": "pagbank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.pagbank.uol.com.br/reference/como-integrar-o-google-pay) |
| PagBrasil | ``` "gateway": "pagbrasil" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.pagbrasil.com/pt-br/) |
| PagSeguro | ``` "gateway": "pagsegurointernational" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.international.pagseguro.com/docs/google-pay-api) |
| Pay N Seconds | ``` "gateway": "paynseconds" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| PAY2M | ``` "gateway": "pay2m" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pay2m.com/) |
| Payadmit | ``` "gateway": "payadmit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payadmit.com) |
| Payarc | ``` "gateway": "payarc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payarc.net/#a0463c39-0df4-40da-aac6-2befee70870c) |
| Paybis | ``` "gateway": "paybis" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payb.is/docs/mobile-android-sdk#google-pay) |
| PAYBOX VERIFONE | ``` "gateway": "paybox" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Pay.com | ``` "gateway": "paycom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apiref.pay.com/reference/googlepay) |
| PayCaps Technology LLC SPC | ``` "gateway": "paycaps" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.paycaps.com/paycaps-hosted-checkout-integration-for-googlepay/) |
| PAYCOMET | ``` "gateway": "paycomet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paycomet.com/en/recursos/espec/googlepay) |
| Paycore | ``` "gateway": "twisto" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paycore.com/tr/) |
| Paycross Ltd | ``` "gateway": "paycross" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.pay-cross.com/) |
| PayDo | ``` "gateway": "paydo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paydo.com/merchant-account-new/payment-lifecycle/integration-flows/server-to-server/google-pay-tm) |
| Paydock | ``` "gateway": "paydock" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://helpdesk.paydock.com/google-pay-via-mpgs-gateway) |
| PayEase | ``` "gateway": "payeasenet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://demo.yizhifubj.com/Development/showdoc-master/web/#/19?page_id=1182) |
| PayEngine | ``` "gateway": "payengine" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payengine.co/developer-docs/processing-payments/google-pay) |
| PayerMax | ``` "gateway": "payermax" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payermax.com/doc-center/receipt/front-end-component/configuration-googlepay.html) |
| PayFabric | ``` "gateway": "payfabric" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://github.com/PayFabric/Portal/blob/master/PayFabric/Sections/APM.md#google-paytm) |
| PayFacto | ``` "gateway": "payfacto" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payfacto.com/google-pay/) |
| PayFast | ``` "gateway": "gopayfastuat" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://gopayfast.com/wp-content/uploads/google-pay-developer-doc.pdf) |
| Payfast by Network | ``` "gateway": "payfast" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paygate.co.za/paygate-by-network/reference/google-paytm-token-payments-host-to-host) |
| paygent | ``` "gateway": "paygent" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.paygent.co.jp/service/googlepay/) |
| Payhub | ``` "gateway": "payhub" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://innsmouth.payhub.com.ua/google-pay/) |
| PayKKa | ``` "gateway": "paykkaeu" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://jlpay.yuque.com/pmw77l/zfm2gs/fzv0up0c2yeyn6gt?singleDoc#) |
| Payku | ``` "gateway": "payku" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payku.com) |
| PayLane | ``` "gateway": "paylane" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://devzone.paylane.com/api-guide/google-pay/) |
| Payler | ``` "gateway": "payler" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payler.com/developers/internetacquiring/13) |
| PayLink® | ``` "gateway": "paylink" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://why.pay.link/integrate-google-pay) |
| Payload | ``` "gateway": "payload" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payload.co/ui/mobile-wallets/) |
| Paymark | ``` "gateway": "paymark" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.paymark.co.nz/products/click/) |
| PayMaster | ``` "gateway": "paymaster" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paymaster.ru/docs/ru/googlepay) |
| PayMe | ``` "gateway": "payme" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payme.io/) |
| Payment Fusion | ``` "gateway": "paymentfusion" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://partner.paymentfusion.com) |
| PaymentIQ | ``` "gateway": "worldlinedevcode" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://opendocs.paymentiq.com/googlepay_processor) |
| Paymentvision | ``` "gateway": "paymentvision" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apihelp.autoscribe.com/googlepay/google-pay-processing) |
| Paymentwall | ``` "gateway": "paymentwall" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paymentwall.com/payment-method/google-pay) |
| Paymo | ``` "gateway": "paymo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paymo.ru/#google-pay) |
| Paymob | ``` "gateway": "gpaymob" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paymob.ae/docs/google-pay) |
| PayMongo | ``` "gateway": "paymongo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.paymongo.com/docs/google-pay#/) |
| Paymtech | ``` "gateway": "paymtech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paymtech.kz/pdf/GooglePay_integration.pdf) |
| PayNearMe | ``` "gateway": "paynearme" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://home.paynearme.com/payment-types/apple-google-pay/) |
| Payneteasy | ``` "gateway": "payneteasy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.payneteasy.eu/alternative_payment_methods_API/googlepayintegration.html) |
| PayNetWorx | ``` "gateway": "paynetworx" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paynetworx.com/digital_wallets/google_pay/index.html) |
| PayNext Inc | ``` "gateway": "paynext" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paynext.com) |
| Pay.nl | ``` "gateway": "paynl" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.pay.nl/paymentoptions?language=en#google-pay) |
| Paynopain | ``` "gateway": "paynopain" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paylandsen.docs.apiary.io/#reference/alternative-payment-methods) |
| PayOne | ``` "gateway": "payone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payone.document360.io/docs/google-pay) |
| PayOnline | ``` "gateway": "payonline" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.payonline.ru/googlepay) |
| Payonomy Limited | ``` "gateway": "asperato" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Payoo | ``` "gateway": "payoo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.payoo.vn/docs/PayooPGW_IntegrationDocument_GooglePay.pdf) |
| PayPal Complete Payments | ``` "gateway": "paypalppcp" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.paypal.com/api/orders/v2/orders-create) |
| Pay Theory | ``` "gateway": "paytheory" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paytheory.com/docs/main/online_payments/wallet_transactions/google_pay/getting_started) |
| PayPlus | ``` "gateway": "payplus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.payplus.co.il/google-pay) |
| PayPlusLLC | ``` "gateway": "payplusllc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://payplus.kz/documentation/googlePay) |
| PayPro Pvt Ltd | ``` "gateway": "paypro" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Payrails | ``` "gateway": "payrails" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payrails.com/docs/google-pay) |
| PayRex | ``` "gateway": "payrexhq" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payrex.com/docs/guide/developer_handbook/payments/payment_methods/googlepay/receive_a_payment) |
| Payrexx | ``` "gateway": "payrexx" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payrexx.com/merchant/v/master/payment-priovder/external-payment-provider/wallets-and-more/google-pay-tm) |
| PayRiff | ``` "gateway": "payriff" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.payriff.com/#googlepay) |
| Payrix | ``` "gateway": "payrix" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://resource.payrix.com/resources/enable-google-pay-for-web) |
| Paysafe | ``` "gateway": "paysafe" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.paysafe.com/en/rest-apis/google-pay/overview/) |
| Payscout | ``` "gateway": "payscout" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://project.payscout.com/dbtranz/docs/OSBP/files/Development.html#introduction) |
| Paysend Business | ``` "gateway": "paysend" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paysend.com/business/acquiring/) |
| Paysoft | ``` "gateway": "paysoft" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paysoft.solutions/en/server2server/googlepay.html) |
| Paystack Payments Limited | ``` "gateway": "paystack" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paystack.com/docs/payments/google-pay/) |
| Pay360 | ``` "gateway": "pay360" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.pay360.com/google-pay/) |
| PayTabs | ``` "gateway": "paytabs" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://docs.paytabs.com/manuals/google-pay-integration/) |
| paytech | ``` "gateway": "paytechsolutions" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paytech.api-docs.info/) |
| PayTech Ukraine | ``` "gateway": "paytech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paytech.com.ua/wp-content/uploads/2023/09/g_pay_documentation-3.pdf) |
| Payten Payment Gateway | ``` "gateway": "paytentr" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://merchantsafeunipay.com/msu/api/v2/doc) |
| Paythru | ``` "gateway": "paythru" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.paythru.com/walletpayments/google-pay.html) |
| Payture | ``` "gateway": "payture" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://payture.com/google-pay/) |
| PayU | ``` "gateway": "payu" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](http://developers.payu.com/en/google_pay.html) |
| PayU LATAM | ``` "gateway": "payulatam" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.payulatam.com/latam/en/docs/integrations/api-integration/payments-api-brazil.html#submit-transaction-with-google-pay) |
| PAYUNi | ``` "gateway": "payuni" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.payuni.com.tw/docs/web/#/7/34) |
| PayU Romania | ``` "gateway": "payuro" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://secure.payu.ro/docs/alu/v3/#token-googlepay) |
| PayU Russia | ``` "gateway": "payuru" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://secure.payu.ru/docs/alu/v3/#token-googlepay) |
| Payway | ``` "gateway": "payway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.payway.com/wp-content/uploads/Payway-GooglePay-Integration-Guide_DesignRev4.pdf) |
| Paywiser | ``` "gateway": "paywiser" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://paywiser.com/api/gpay) |
| PayXpert | ``` "gateway": "payxpert" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.payxpert.com/google-pay/) |
| Payzone Ireland | ``` "gateway": "payzoneireland" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.payzone.ie/business/online-payment-solutions) |
| PBT Gateway Services Ltd | ``` "gateway": "pbtgateway" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://merchants.pbtpay.eu/WebSite/DeveloperDocs.aspx) |
| Pelecard | ``` "gateway": "pelecard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.pelecard.com/google-pay/) |
| Pensopay | ``` "gateway": "pensopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.pensopay.com/hc/da/articles/19813066927261-Google-Pay) |
| PhotonPay | ``` "gateway": "photonpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.photonpay.com/) |
| Pifagorus Ltd | ``` "gateway": "pifagorusgate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pifagorus.com/Google_technical_integration.pdf) |
| Pikassa | ``` "gateway": "pikassa" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pikassa.io/google-pay) |
| PingPong | ``` "gateway": "pingpongx" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.pingpongx.com/zh) |
| Pin Payments | ``` "gateway": "pinpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pinpayments.com/developers/integration-guides/google-pay) |
| Planet | ``` "gateway": "cccpayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.planetpayment.com/media/5060/googlepay-integration.pdf) |
| PlanetPay | ``` "gateway": "itcardpaymentservice" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://planetpay.pl/storage/app/uploads/public/65a/007/0e3/65a0070e39c1b403290322.pdf) |
| Plategka.com | ``` "gateway": "plategkacom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.plategka.com/) |
| Platon | ``` "gateway": "platon" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://platon.atlassian.net/wiki/spaces/docs/pages/1346994177/Google+Pay+API) |
| Plexo | ``` "gateway": "plexouy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://plexo.gitbook.io/rest-api/wallets/google-pay) |
| Plexy | ``` "gateway": "plexy" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.plexy.money/google-pay-integration-1968069m0) |
| Pomelo | ``` "gateway": "pomelopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.pomelopay.com/docs/wallet-payments/ZG9jOjE3NjM0MDQ1-google-pay) |
| Portmone | ``` "gateway": "portmonecom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.portmone.com.ua/docs/GPay/) |
| PortPos | ``` "gateway": "portpos" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.portpos.com/googlepay.php) |
| Powerpay | ``` "gateway": "powerpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://api.powerpay.solutions/#tag/Google-Paytm) |
| Praxis | ``` "gateway": "praxistech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.praxis.tech/docs/google-pay) |
| Preczn | ``` "gateway": "preczn" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.preczn.com/docs/google-pay-for-web) |
| PrimePay | ``` "gateway": "primepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.primepay.kz/#google-pay) |
| Primer | ``` "gateway": "primer" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://primer.io/docs/payment-methods/google-pay/direct-integration) |
| Procard | ``` "gateway": "procard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.procard-ltd.com/en/docs/GooglePay/) |
| ProcessOut | ``` "gateway": "processout" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.processout.com/payments/googlepay/) |
| Przelewy24 | ``` "gateway": "przelewy24" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.przelewy24.pl/#tag/GPay-Description) |
| PSCB | ``` "gateway": "pscbru" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.pscb.ru/oos/shpa.html#shlyuz-prozrachnoj-avtorizacii-scenarii-vzaimodejstviya-google-pay) |
| PSiGate Inc. | ``` "gateway": "psigate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://psigate.com/docs/MobilePayMethods.pdf) |
| PXP Financial | ``` "gateway": "pxpfinancial" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.pxp-solutions.com/reference/google-pay-process-flow) |
| Qenta Payment CEE | ``` "gateway": "qenta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://guides.qenta.com/payment-methods/googlePayApi/) |
| QIWI | ``` "gateway": "qiwi" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.qiwi.com/en/qiwipay/#introduction) |
| QNB | ``` "gateway": "qnbpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ecomgateway.qnb-pay.com/ipg/docs) |
| QorCommerce | ``` "gateway": "qorpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.qorcommerce.io/guides/google-pay-integration-guide.pdf) |
| Qualpay | ``` "gateway": "qualpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.qualpay.com/developer/guides/google-pay) |
| QuickPay | ``` "gateway": "quickpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://learn.quickpay.net/helpdesk/en/articles/payment-methods/google-pay/) |
| Qvalent | ``` "gateway": "qvalent" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://quickstream.westpac.com.au/docs/google-pay) |
| Radial | ``` "gateway": "radial" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.radial.com/ptf/Content/Topics/payments/google-integration.htm?Highlight=google+pay) |
| Raiffeisen Processing Centre | ``` "gateway": "raiffeisenprocessingcentre" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.raiaccept.com/google-pay.html) |
| Rainforest | ``` "gateway": "rainforestpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.rainforestpay.com/docs/google-pay) |
| RapidCents | ``` "gateway": "rapidcentspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.rapidcents.com/docs/google-pay/) |
| Rapyd | ``` "gateway": "rapyd" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.rapyd.net/build-with-rapyd/docs/google-pay) |
| RBK.money | ``` "gateway": "rbkmoney" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.rbk.money/docs/payments/googlepay/) |
| Rebail Capital | ``` "gateway": "rebailcapital" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://rebail.capital/googlepay) |
| Rebilly | ``` "gateway": "Rebilly" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.rebilly.com/integrations/google-pay/) |
| Recurly | ``` "gateway": "recurly" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.recurly.com/docs/google-pay) |
| Reddot | ``` "gateway": "reddotpayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://reddotpayment.com/google-pay/) |
| Rede | ``` "gateway": "rede" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.maxipago.com/developers/google-pay/) |
| Redsys | ``` "gateway": "redsys" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pagosonline.redsys.es/desarrolladores-inicio/documentacion-otros-metodos-de-pago/otros-metodos-de-pago-google-pay) |
| Reepay | ``` "gateway": "reepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://reepay.com/payments-with-google-pay/) |
| Revenue Monster | ``` "gateway": "revenuemonster" "gatewayMerchantId": "YOUR_REVOLUT_ORDER_TOKEN" ``` [Developer docs](https://doc.revenuemonster.my/docs/digital-wallet/google-pay) |
| Revolut | ``` "gateway": "revolut" "gatewayMerchantId": "YOUR_REVOLUT_ORDER_TOKEN" ``` [Developer docs](https://developer.revolut.com/docs/guides/accept-payments/online-payments/apple-pay-google-pay/server-to-server/android) |
| RocketGate | ``` "gateway": "rocketgate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.rocketgate.com/googlepay/) |
| revPAY (Revenue Harvest) | ``` "gateway": "revpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://revpay.com.my/google-pay.php) |
| Rootline | ``` "gateway": "rootline" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.rootline.com/guides/payment-methods/google-pay) |
| Russian Standard Bank | ``` "gateway": "rsb" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://testsecurepay.rsb.ru/email/rsb_ecomm_api_en.pdf) |
| Ryft | ``` "gateway": "ryft" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.ryftpay.com/google-pay) |
| S.C. C SOLUTION S.R.L. | ``` "gateway": "plationline" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Safepay | ``` "gateway": "safepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://safepay-docs.netlify.app/concepts/payment-methods/google-pay/) |
| Saferpay | ``` "gateway": "worldlinesaferpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.saferpay.com/home/integration-guide/payment-methods/google-pay) |
| Safexpay | ``` "gateway": "safexpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.safexpay.ae/GooglePay) |
| Sberbank | ``` "gateway": "sberbank" "gatewayMerchantId": "YOUR_ORGANIZATION_NAME" ``` [Developer docs](https://securepayments.sberbank.ru/wiki/doku.php/integration:googlepay:start) |
| Seachange | ``` "gateway": "seachange" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.seachangefinance.com/) |
| SEB Baltic | ``` "gateway": "sebbaltic" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.ecommerce.sebgroup.com/en/articles/13459444-google-pay-integration-guide) |
| SEBES Technology | ``` "gateway": "sebes" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sebestech.com/API/google.html) |
| secupay | ``` "gateway": "secupay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.secuconnect.com/integration/Google_PayTM_Integration_Checklist.html) |
| SecurePay | ``` "gateway": "securepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.securepay.com) |
| Sense Bank | ``` "gateway": "sensebank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sensebank.com.ua/samostijna-integracia-platformi-internet-magazinu-z-google-pay-api) |
| SensePass | ``` "gateway": "sensepass" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.sensepass.com/sensepay/transaction-api/payment-methods) |
| Servicios Digitales Popular S.A. | ``` "gateway": "pagosazul" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.azul.com.do/Pages/developer/documentos/plugins/Integracion_con_Google_Pay.pdf) |
| Shift4 | ``` "gateway": "shift4payments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.shift4.com/examples/charge-with-google-pay) |
| Shiji Group | ``` "gateway": "shijipaymentsolutions" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.shijigroup.com/brands/shiji-payment-solutions) |
| SH Start High | ``` "gateway": "shstartpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.shstartpay.com/google-pay) |
| shvarenapay | ``` "gateway": "shvarenapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.shva.co.il/docs/shva-arena-dev-checkout-product/1/overview) |
| SIBS Romania | ``` "gateway": "romcard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://pay.sibs.ro/support/developers/google-pay-hosted-payment-page/Google%20Pay%E2%84%A2%20Integration%20-%20Merchant%20Guide%20Updated%2020260420.pdf) |
| simbasoft | ``` "gateway": "simbasoft" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.symoco.com) |
| SimplePay Zrt | ``` "gateway": "simplepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://simplepay.hu/fejlesztoknek/) |
| Sipay | ``` "gateway": "sipay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sandbox.sipay.es/docm/google/en/) |
| SmartPay | ``` "gateway": "smartpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.smartpay.co.il/google-pay/) |
| Softbank Payment Service | ``` "gateway": "sbps" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.sbpayment.jp/service/asp/google_pay/) |
| Softtouch POS and Payments | ``` "gateway": "softtouch" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.fractalpay.com/googlepayhttps://web.softtouchpos.co/auth/softtouch-google-pay-developer-documentation) |
| Sohar International | ``` "gateway": "soharinternational" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Sokin | ``` "gateway": "sokinpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.sokin.com/article/how-to-configure-google-pay) |
| Solid | ``` "gateway": "solid" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.solidgate.com/developers/documentation/payments/google-pay) |
| Sony Payment Services | ``` "gateway": "sonypaymentservices" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.sonypaymentservices.jp/consider/Google-pay/) |
| SPayN | ``` "gateway": "spayn" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://admin-test-psp.spayn.es/access/docs/index.html#tag/Google-Paytm-Integration-SPayN-PSP) |
| Splitit | ``` "gateway": "splitit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.splitit.com/support/google-pay) |
| Spreedly | ``` "gateway": "spreedly" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.spreedly.com/guides/google-pay/) |
| Square | ``` "gateway": "square" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.connect.squareup.com/payments/sqpaymentform/digitalwallet/googlepay-setup) |
| SredaPay | ``` "gateway": "sredapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://googlepartners.file.force.com/servlet/servlet.FileDownload?file=00P6Q00001hRDWBUA4&operationContext=S1) |
| SSLCOMMERZ | ``` "gateway": "sslcommerz" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.sslcommerz.com/doc/v4/google-pay-integration.html) |
| Stancer | ``` "gateway": "stancer" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.stancer.com/documentation/) |
| Stratsol | ``` "gateway": "stratsol" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.strat-sol.biz/) |
| Stripe | ``` "gateway": "stripe" "stripe:version": "2018-10-31" "stripe:publishableKey": "YOUR_PUBLIC_STRIPE_KEY" ``` [Developer docs](https://stripe.com/docs/google-pay) |
| SUMIT | ``` "gateway": "sumit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.sumit.co.il/he/articles/10257965) |
| SUNBAY | ``` "gateway": "sunbay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.sunbay.us/en/docs/integration/online/google-pay) |
| Suntech | ``` "gateway": "esafe" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.sunpay.com.tw/%e7%94%a2%e5%93%81%e8%aa%aa%e6%98%8e/%e4%bf%a1%e7%94%a8%e5%8d%a1/google-pay/) |
| SuperSonic Pay | ``` "gateway": "supersonicpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://api.supersonicpay.com/docs) |
| Surfboard Payments | ``` "gateway": "surfboard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.surfboardpayments.com/docs/concepts/payment-methods/google-pay) |
| Svea Bank | ``` "gateway": "svea" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.svea.com/sv-se/foretag/betallosningar) |
| Swedbank Baltic | ``` "gateway": "swedbankbaltic" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.every-pay.com/en/articles/13770531-google-pay-integration-guide) |
| Swedbank Pay | ``` "gateway": "payexswedbankpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.swedbankpay.com) |
| TabaPay | ``` "gateway": "tabapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.tabapay.com/GooglePay_Developer.html) |
| Tabit | ``` "gateway": "tabit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.tabit.cloud) |
| TapPay (Cherri Tech) | ``` "gateway": "tappay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.tappaysdk.com/taiwan-zhtw/service/payments/google-pay) |
| TapPayments | ``` "gateway": "tappayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://github.com/Tap-Payments/gosell-js-client/tree/development#google-pay) |
| tarlanpayments | ``` "gateway": "tarlanpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.tarlanpayments.kz/en/google-pay/) |
| TAS Link | ``` "gateway": "taslink" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://p.taslink.com.ua/gpay/) |
| Tatra banka (CardPay) | ``` "gateway": "tatrabanka" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Technology Partnership PGS | ``` "gateway": "technologypartnership" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://kopaapiclient.gokopa.co/) |
| TEKO | ``` "gateway": "teko" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.teko.io/assets/common/gpay_integration.pdf) |
| Telepay | ``` "gateway": "telerompay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://secure.telepay.co.il) |
| Telr | ``` "gateway": "telr" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.telr.com/reference/google-pay-integration) |
| theMAP | ``` "gateway": "themap" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.mapcard.pro/current/sposoby-oplaty/google-pay) |
| The Vaults International Payment L.L.C | ``` "gateway": "vaultspaygpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://sdk.vaultspay.com/payment-method?paymentId=PL_SXZXDTGLI1U1U) |
| Till Payments | ``` "gateway": "tillpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tillpayments.com/news/google-pay-tm-integration) |
| Tilopay | ``` "gateway": "tilopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tilopay.com/documentacion/pago-rapido-y-seguro-google-pay) |
| Time Project LLC | ``` "gateway": "timeproject" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.merchant.alb.ua/platizhni-metodi-h2h/googlepay-tm-encrypted/dokumenaciya-googlepay-tm) |
| Tinkoff | ``` "gateway": "tinkoff" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://oplata.tinkoff.ru/solution/methods/googlepay/) |
| TIPTOP PAY | ``` "gateway": "tiptoppay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| TIYN | ``` "gateway": "tiyn" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://business.tiyn.io) |
| TOKENTECH | ``` "gateway": "tokentech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tokentech.pro/) |
| TORA | ``` "gateway": "tora" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://torapaymentgatewayapi.docs.apiary.io/#reference/payments) |
| TotalPay | ``` "gateway": "totalpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.totalpay.global/docs/guides/checkout_methods/#google-pay) |
| TPay | ``` "gateway": "tpaycom" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.tpay.com/pl/merchant/google-pay-tm-on-site) |
| TPay.com | ``` "gateway": "tpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://tpay.com/platnosci-karta/googlepay) |
| Trade and Development Bank of Mongolia(TDBM) | ``` "gateway": "tdbgpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.tdbm.mn/en) |
| Transact Campus | ``` "gateway": "transactcampus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://transactcampus.com/landing/Using-Google-Pay-with-Transact-Campus) |
| Transact Pro | ``` "gateway": "transactpro" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.transactpro.eu/) |
| Transactworld CY | ``` "gateway": "TransactworldCY" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://secure.transactworld.com/merchant/index.jsp) |
| Transaction Services Network | ``` "gateway": "tns" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.advam.com/solutions/pathtopay/) |
| Transpayrent | ``` "gateway": "transpayrent" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://documentation.transpayrent.cloud) |
| Tranzila | ``` "gateway": "tranzila" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.tranzila.com/google-pay.html) |
| Tranzzo | ``` "gateway": "tranzzo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.tranzzo.com/docs/payment-methods/digital-wallets/google-pay/) |
| Tribe Payments | ``` "gateway": "tribepayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.tribepayments.com/docs/gateway--google-pay-flow--v1) |
| Truevo | ``` "gateway": "truevo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.truevo.com/) |
| TrustPay | ``` "gateway": "trustpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.trustpay.eu/more-payment-methods/) |
| Trust Payments | ``` "gateway": "trustpayments" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.trustpayments.com/hc/en-us/sections/4404834183185-Google-Pay) |
| Tuna | ``` "gateway": "tuna" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://dev.tuna.uy/payments/googlepay/) |
| TWPAYZ | ``` "gateway": "transactworlduk" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://document.twpayz.com/integration/googlepay.php) |
| Tyler Technologies | ``` "gateway": "tylertech" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.tylertech.com) |
| 2can\&ibox | ``` "gateway": "twocan" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.2can.ru/docs/offer_google_pay) |
| UAPAY | ``` "gateway": "uapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://uapayua.atlassian.net/wiki/spaces/AC/pages/1604222977/Google+Pay) |
| UBRR | ``` "gateway": "ubrrpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ubrr.ru/sites/default/files/obshchee_opisanie_modulya_integracii_cms_i_twpg_gpay_v2.pdf) |
| Ukrcardpay | ``` "gateway": "ukrcardpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.ukrcard.ua/google_pay_integration_guide_for_ukrcardpay_PSP_v1_0_0_eng.pdf) |
| UkrGasBank Pay | ``` "gateway": "ukrgasbankpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.ukrgasaws.com/en/google_pay) |
| Unibank OJSC | ``` "gateway": "unibankcheckout" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://unibank.az/uploads/other/GooglePay_api_Unibank.pdf) |
| Unicorn Laboratories | ``` "gateway": "unicornlab" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://unicornlab.kz/wp-content/uploads/2026/09/Google_Pay_Unicorn_PG_API_EN.pdf) |
| Unipaas payments technologies | ``` "gateway": "unipaas" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.unipaas.com/docs/apple-pay-and-google-pay#google-pay) |
| unitedfinancialcorporation | ``` "gateway": "unitedfinancialcorporation" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developers.google.com/static/pay/api/download-assets/unitedfinancialcorporation-gpay-integration.pdf) |
| Uniteller | ``` "gateway": "uniteller" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.uniteller.ru/google-pay/) |
| Unitpay | ``` "gateway": "unitpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.unitpay.ru/unitpay-management/instrukciya-po-interfeisu#komissii-i-platezhnye-metody) |
| Unlimint | ``` "gateway": "unlimint" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://integration.unlimint.com/v3/#Google-Pay) |
| Unzer | ``` "gateway": "unzer" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.unzer.com/payment-methods/googlepay/) |
| Unzer Austria | ``` "gateway": "unzeraustria" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.mpay24.com/docs/googlepay) |
| UPC | ``` "gateway": "upc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://upc.ua/ecommerce/google-pay) |
| Upgate | ``` "gateway": "upgate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://upgate.redoc.ly/#tag/Google-Pay) |
| USAePay | ``` "gateway": "usaepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.usaepay.info/developer/client-js-v2/#google-paytm) |
| UseePay | ``` "gateway": "useepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://useepay.gitbook.io/useepay/plugins/google-pay-api-dai-shang-xian) |
| USIO, Inc. | ``` "gateway": "usio" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://usio.com/) |
| Valitor | ``` "gateway": "valitor" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://valitorpay.github.io/) |
| value.io | ``` "gateway": "inspirecommerce" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.postman.com/value-io/vio-public/collection/u0mraba/google-pay) |
| Vanco | ``` "gateway": "vanco" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apidocs.connexpoint.com/hexea-js.html#tag/Wallets-Overview) |
| VantagePay | ``` "gateway": "vantagepay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Vantiv | ``` "gateway": "vantiv" "vantiv:merchantPayPageId": "YOUR_PAY_PAGE_ID" "vantiv:merchantOrderId": "YOUR_ORDER_ID" "vantiv:merchantTransactionId": "YOUR_TRANSACTION_ID" "vantiv:merchantReportGroup": "*web" ``` [Developer docs](https://docs.worldpay.com/apis/cnpapi/googlepay) |
| Vayapay | ``` "gateway": "vayapay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Vendo | ``` "gateway": "vendoservices" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.vendoservices.com/docs/google-pay) |
| Verestro | ``` "gateway": "verestro" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.verestro.com/books/paytool) |
| Verifone Payments BV | ``` "gateway": "twocheckoutpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.2checkout.com/) |
| Verifone Web Pay | ``` "gateway": "verifonefinland" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.verifonewebpay.fi/) |
| Very Good Security | ``` "gateway": "verygoodsecurity" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.verygoodsecurity.com/docs/integrations/google-pay) |
| Vesta | ``` "gateway": "vesta" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.vesta.io/) |
| Victoriabank | ``` "gateway": "victoriabank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.victoriabank.md/en/carduri-pj/e-commerce-test) |
| Vindicia | ``` "gateway": "vindicia" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.vindicia.com/cashbox-and-google-pay) |
| Vinr | ``` "gateway": "vinrpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.vinr.com/) |
| Viva Wallet | ``` "gateway": "vivawallet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.vivawallet.com/online-checkouts/redirect-checkout/google-pay-integration/) |
| VTEX | ``` "gateway": "vtex" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.vtex.com/en/tracks/carteira-digital-e-wallet--6X8YyZBoVJpz5R8oXciTyu/61JMBvM5Vanqj6RaJsP8CT) |
| W-HA | ``` "gateway": "wha" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://ressources.w-ha.com/support-contodeo/integration-google-pay) |
| Waffo | ``` "gateway": "waffo" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.waffo.com/docs/google-pay/?open_in_browser=true#_top) |
| Wallee | ``` "gateway": "wallee" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://app-wallee.com/en-us/doc/payment/google-pay) |
| Walletdoc | ``` "gateway": "walletdoc" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.walletdoc.com/docs/google-pay) |
| Walletto | ``` "gateway": "walletto" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://walletto.eu/documents/GooglePay_integration.pdf) |
| WayForPay | ``` "gateway": "wayforpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://help.wayforpay.com/display/knowledgewfp/Payment+method+Google+Pay) |
| WEAT | ``` "gateway": "weatpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.weat.de/produkte/mph) |
| WhenThen | ``` "gateway": "whenthen" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://documentation.whenthen.com/orchestrate/alternative-payment-methods/google-pay) |
| Whitegate | ``` "gateway": "Whitegate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.whitegate.io/payment-methods/google-pay/) |
| WHITELARK LTD | ``` "gateway": "whitelark" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://white-lark.atlassian.net/wiki/x/AQAtBw) |
| Windcave | ``` "gateway": "windcave" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.windcave.com/developer-ecommerce-google-pay) |
| Wirebank | ``` "gateway": "wirebank" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://wirebank.ru/docs/api/#section/Provedenie-oplaty-s-Google-Paytm) |
| Wirecard | ``` "gateway": "wirecard" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://doc.wirecard.com/GooglePay_Main.html) |
| Wondergate | ``` "gateway": "wondergate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://document.wondergate.io/reference/api/details/google-pay.html) |
| WOOPPAY | ``` "gateway": "wooppay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.woopkassa.kz/kz/products/google-pay) |
| WooshPay | ``` "gateway": "swooshtransfer" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.wooshpay.com/developer-doc) |
| Worldline (GlobalCollect) | ``` "gateway": "globalcollect" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://epayments.developer-ingenico.com/payment-product/google-pay/overview) |
| Worldline - Ingenico (WL Online Checkout) | ``` "gateway": "worldlineingenicoogone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://support.direct.ingenico.com/payment-methods/google-pay/overview) |
| Worldline Nordics (Worldline Online Checkout) | ``` "gateway": "worldlineonlinecheckout" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer.bambora.com/europe/checkout/payment-methods/google-pay) |
| Worldline Sips | ``` "gateway": "wlsips" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.sips.worldline-solutions.com/en/WLSIPS.157-PM-Google-Pay-integration.html) |
| Worldnet | ``` "gateway": "worldnet" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.worldnettps.com/doku.php?id=developer:api_specification:xml_payment_features_googlepay) |
| Worldpay | ``` "gateway": "worldpay" "gatewayMerchantId": "YOUR_WORLDPAY_MERCHANT_ID" ``` [Developer docs](https://developer.worldpay.com/docs/wpg/mobilewallets/googlepay) |
| Wpay | ``` "gateway": "wpayaus" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developerhub.wpay.com.au/digitalpayments/docs/google-pay) |
| WSPay | ``` "gateway": "wspay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.wspay.info/googlepay) |
| Xendit | ``` "gateway": "xendit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.xendit.co/docs/google-pay) |
| xMoney | ``` "gateway": "xmoneypay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.xmoney.com/guides/payments/payment-methods/google-pay) |
| XPATE | ``` "gateway": "xpate" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://developer-portal.xpate.com/docs/xpate-gateway/i9tnh1rdt0gsx-google-pay) |
| xpay | ``` "gateway": "xpaycomua" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.xpay.com.ua/eng-google-pay-integration-guide) |
| XPay by PostEx | ``` "gateway": "xpaybypostex" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://xstak-pay.xstak.com) |
| YabandPay B.V. | ``` "gateway": "yabandpay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.yabandpay.com/api/en/payments/cards/googlepay.html) |
| Yapstone | ``` "gateway": "yapstone" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apidocs.elements.yapstone.com/) |
| YIĞIM Payment System | ``` "gateway": "yigim" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| ЮKassa (YooKassa) | ``` "gateway": "yoomoney" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://yookassa.ru/integration-mobile/) |
| Yuno | ``` "gateway": "yuno" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://docs.y.uno/docs/google-pay-direct-integration) |
| Z-credit | ``` "gateway": "zcredit" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://zcreditwc.docs.apiary.io/) |
| Zalopay | ``` "gateway": "zalopay" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://beta-docs.zalopay.vn/docs/guides/payment-acceptance/googlepay/intro) |
| Zeller | ``` "gateway": "zeller" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| ZEN.com | ``` "gateway": "zen" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://www.zen.com/developer/googlepay) |
| Zest | ``` "gateway": "zestpayment" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://apidocs.dev.gateway.zestpayment.com/#/google-pay) |
| Zift | ``` "gateway": "zift" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` No developer docs available |
| Zuora | ``` "gateway": "zuora" "gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID" ``` [Developer docs](https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/C1_Set_up_Google_Pay_with_Zuora_JavaScript_SDK) |

The `PAYMENT_GATEWAY` tokenization type is the most common merchant implementation
of the card payment method in the Google Pay API. If your payment provider isn't supported, you
might be able to accept Google Pay by a `DIRECT` integration. For more information, see the
[Direct tokenization
documentation](https://developers.google.com/pay/api/android/reference/request-objects#direct).

### Define supported payment card networks

Define the card networks that your application accepts.

### Kotlin

```kotlin
private val allowedCardNetworks = JSONArray(listOf(
        "AMEX",
        "DISCOVER",
        "INTERAC",
        "JCB",
        "MASTERCARD",
        "VISA"))
    
```

### Java

```java
private static JSONArray getAllowedCardNetworks() {
  return new JSONArray()
      .put("AMEX")
      .put("DISCOVER")
      .put("INTERAC")
      .put("JCB")
      .put("MASTERCARD")
      .put("VISA");
}
    
```

The Google Pay API might return cards on file from your account (`PAN_ONLY`) or a device
token on an Android-powered device authenticated with a 3-D Secure cryptogram
(`CRYPTOGRAM_3DS`). You can configure the API to return the methods that your
application supports.

Before you set `allowedCardAuthMethods`, confirm with your payment processor and
acquirer on whether device tokens (`CRYPTOGRAM_3DS`) are supported in your region.

### Kotlin

```kotlin
private val allowedCardAuthMethods = JSONArray(listOf(
        "PAN_ONLY",
        "CRYPTOGRAM_3DS"))
    
```

### Java

```java
private static JSONArray getAllowedCardAuthMethods() {
  return new JSONArray()
      .put("PAN_ONLY")
      .put("CRYPTOGRAM_3DS");
}
    
```

For more information, see the
[reference documentation for the
`CardParameters` object](https://developers.google.com/pay/api/android/reference/request-objects#CardParameters). For Android device tokens support, check with your
gateway or processor for the card networks supported.

> [!WARNING]
> **Important:**
>
> - Make sure that you also apply your existing risk checks and controls to Google Pay transactions. Google Pay validation and fraud checks aren't intended to replace your risk management processes.
> - If you support `PAN_ONLY`, ensure that you trigger 3-D Secure (step-up authentication) for Google Pay PAN `PAN_ONLY` transactions in the same way that you trigger 3-D Secure for other card transactions.

### Describe your allowed payment methods

In order to describe your application's support for the `CARD` payment method, combine
your supported authentication methods and card networks.

### Kotlin

```kotlin
private fun baseCardPaymentMethod(): JSONObject =
    JSONObject()
        .put("type", "CARD")
        .put("parameters", JSONObject()
                .put("allowedAuthMethods", allowedCardAuthMethods)
                .put("allowedCardNetworks", allowedCardNetworks)
                .put("billingAddressRequired", true)
                .put("billingAddressParameters", JSONObject()
                        .put("format", "FULL")
                )
        )
    
```

### Java

```java
private static JSONObject getBaseCardPaymentMethod() throws JSONException {
  return new JSONObject()
      .put("type", "CARD")
      .put("parameters", new JSONObject()
          .put("allowedAuthMethods", getAllowedCardAuthMethods())
          .put("allowedCardNetworks", getAllowedCardNetworks())
          .put("billingAddressRequired", true)
          .put("billingAddressParameters", new JSONObject()
              .put("format", "FULL")
          )
      );
}
    
```

> [!NOTE]
> **Note:** `CARD` is the only supported payment method.

Extend your configuration with information about how to tokenize the payment method.

### Kotlin

```kotlin
private val cardPaymentMethod: JSONObject = baseCardPaymentMethod()
    .put("tokenizationSpecification", gatewayTokenizationSpecification)
    
```

### Java

```java
private static JSONObject getCardPaymentMethod() throws JSONException {
  return getBaseCardPaymentMethod()
      .put("tokenizationSpecification", getGatewayTokenizationSpecification());
}
    
```

For more information, see the
[reference documentation for the
`CardParameters` object](https://developers.google.com/pay/api/android/reference/request-objects#CardParameters).

## Step 2: Create a PaymentsClient instance

Create a
[`PaymentsClient`](https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentsClient.md.txt)
instance to interact with the Google Pay API.

### Kotlin

```kotlin
fun createPaymentsClient(context: Context): PaymentsClient {
    val walletOptions = Wallet.WalletOptions.Builder()
        .setEnvironment(Constants.PAYMENTS_ENVIRONMENT)
        .build()

    return Wallet.getPaymentsClient(context, walletOptions)
}
    
```

### Java

```java
public static PaymentsClient createPaymentsClient(Context context) {
  Wallet.WalletOptions walletOptions =
      new Wallet.WalletOptions.Builder().setEnvironment(Constants.PAYMENTS_ENVIRONMENT).build();
  return Wallet.getPaymentsClient(context, walletOptions);
}
    
```

## Step 3: Determine readiness to pay with the Google Pay API

Add your allowed payment methods to your base request object with the following code snippet:

### Kotlin

```kotlin
fun isReadyToPayRequest(): JSONObject? =
    try {
        baseRequest
            .put("allowedPaymentMethods", JSONArray().put(baseCardPaymentMethod()))
    } catch (e: JSONException) {
        null
    }
    
```

### Java

```java
public static JSONObject getIsReadyToPayRequest() {
  try {
    return getBaseRequest()
        .put("allowedPaymentMethods", new JSONArray().put(getBaseCardPaymentMethod()));
  } catch (JSONException e) {
    return null;
  }
}
    
```

Before you display the Google Pay button, call the `isReadyToPay` API to determine if the user can
make payments with the Google Pay API. For a full list of configuration properties, see the
[`IsReadyToPayRequest` JSON object documentation](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#IsReadyToPayRequest).

### Kotlin

```kotlin
private fun possiblyShowGooglePayButton() {

    val isReadyToPayJson = PaymentsUtil.isReadyToPayRequest() ?: return
    val request = IsReadyToPayRequest.fromJson(isReadyToPayJson.toString()) ?: return

    // The call to isReadyToPay is asynchronous and returns a Task. We need to provide an
    // OnCompleteListener to be triggered when the result of the call is known.
    val task = paymentsClient.isReadyToPay(request)
    task.addOnCompleteListener { completedTask ->
        try {
            completedTask.getResult(ApiException::class.java)?.let(::setGooglePayAvailable)
        } catch (exception: ApiException) {
            // Process error
            Log.w("isReadyToPay failed", exception)
        }
    }
}
      
```

### Kotlin
(coroutines)

```kotlin
private suspend fun fetchCanUseGooglePay(): Boolean {
    val request = IsReadyToPayRequest.fromJson(PaymentsUtil.isReadyToPayRequest().toString())
    return paymentsClient.isReadyToPay(request).await()
}
      
```

### Java

```kotlin
private void possiblyShowGooglePayButton() {

  final Optional<JSONObject> isReadyToPayJson = PaymentsUtil.getIsReadyToPayRequest();
  if (!isReadyToPayJson.isPresent()) {
    return;
  }

  // The call to isReadyToPay is asynchronous and returns a Task. We need to provide an
  // OnCompleteListener to be triggered when the result of the call is known.
  IsReadyToPayRequest request = IsReadyToPayRequest.fromJson(isReadyToPayJson.get().toString());
  Task<Boolean> task = paymentsClient.isReadyToPay(request);
  task.addOnCompleteListener(this,
      new OnCompleteListener<Boolean>() {
        @Override
        public void onComplete(@NonNull Task<Boolean> task) {
          if (task.isSuccessful()) {
            setGooglePayAvailable(task.getResult());
          } else {
            Log.w("isReadyToPay failed", task.getException());
          }
        }
      });
}
      
```

> [!NOTE]
> **Note:** The Tasks API lets you resolve task operations using coroutines. [Learn more](https://developers.google.com/android/guides/tasks.md.txt#kotlin_coroutine).

## Step 4: Add a Google Pay payment button

Add a Google Pay payment button to your app to encourage shoppers to check out with payment
methods that are supported by the Google Pay API and your app.

For more information about available button types, colors, and display requirements, see the
[ButtonOptions](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#ButtonOptions "Google Pay ButtonOptions") reference.

Add the `PayButton` layout to your application's checkout layout:

### Kotlin
(Compose)

```kotlin
PayButton(
    modifier = Modifier
        .testTag("payButton")
        .fillMaxWidth(),
    onClick = onGooglePayButtonClick,
    allowedPaymentMethods = PaymentsUtil.allowedPaymentMethods.toString()
      
```

### XML

```kotlin
<com.google.android.gms.wallet.button.PayButton
        android:id="@+id/googlePayButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="20dp"/>
      
```

> [!NOTE]
> **Note** : To use the Jetpack Compose element, add the `com.google.pay.button:compose-pay-button` library to the list of dependencies in your Gradle build file. For more information, see [compose-pay-button](https://github.com/google-pay/compose-pay-button).

#### If you are adding the Google Pay button using XML...


Go to the Android activity and initialize the Google Pay button alongside other UI elements:

### Kotlin

```kotlin
override fun onCreate(savedInstanceState: Bundle?) {
  super.onCreate(savedInstanceState)

  // Use view binding to access the UI elements
  layout = ActivityCheckoutBinding.inflate(layoutInflater)
  setContentView(layout.root)

  // Setup buttons
  googlePayButton = layout.googlePayButton
  googlePayButton.initialize(
      ButtonOptions.newBuilder()
          .setAllowedPaymentMethods(PaymentsUtil.allowedPaymentMethods.toString()).build()
  )
  googlePayButton.setOnClickListener { requestPayment() }

  // Check Google Pay availability
  model.canUseGooglePay.observe(this, Observer(::setGooglePayAvailable))
}
      
```

### Java

```java
private void initializeUi() {

  // Use view binding to access the UI elements
  ActivityCheckoutBinding layoutBinding = ActivityCheckoutBinding.inflate(getLayoutInflater());
  setContentView(layoutBinding.getRoot());

  // The Google Pay button is a layout file -- take the root view
  googlePayButton = layoutBinding.googlePayButton;
  try {
    googlePayButton.initialize(
        ButtonOptions.newBuilder()
            .setAllowedPaymentMethods(PaymentsUtil.getAllowedPaymentMethods().toString()).build()
    );
    googlePayButton.setOnClickListener(this::requestPayment);
  } catch (JSONException e) {
    // Keep Google Pay button hidden (consider logging this to your app analytics service)
  }
}
      
```

## Step 5: Create a PaymentDataRequest object

A
[`PaymentDataRequest` JSON object](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#PaymentDataRequest)
describes the information that you request from a payer in a Google Pay payment sheet. This includes
information about the transaction price and the status of the provided price. For more
information, see [`TransactionInfo` JSON object documentation](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#TransactionInfo).

The following blocks add information about the merchant and the transaction to
the `PaymentDataRequest` object needed to start the payment process with Google Pay.

> [!WARNING]
> **Important:** Merchants that process transactions in the European Economic Area (EEA) or any other countries that are subject to [Strong Customer Authentication](https://developers.google.com/pay/api/android/guides/resources/sca.md.txt) (SCA) must include the `countryCode`, `totalPrice`, and `merchantName` parameters to meet SCA requirements.

### Kotlin

```kotlin
private fun getTransactionInfo(price: String): JSONObject =
    JSONObject()
        .put("totalPrice", price)
        .put("totalPriceStatus", "FINAL")
        .put("countryCode", Constants.COUNTRY_CODE)
        .put("currencyCode", Constants.CURRENCY_CODE)
    
```

### Java

```java
private static JSONObject getTransactionInfo(String price) throws JSONException {
  return new JSONObject()
      .put("totalPrice", price)
      .put("totalPriceStatus", "FINAL")
      .put("countryCode", Constants.COUNTRY_CODE)
      .put("currencyCode", Constants.CURRENCY_CODE)
      .put("checkoutOption", "COMPLETE_IMMEDIATE_PURCHASE");
}
    
```

### Kotlin

```kotlin
private val merchantInfo: JSONObject =
    JSONObject().put("merchantName", "Example Merchant")
    
```

### Java

```java
private static JSONObject getMerchantInfo() throws JSONException {
  return new JSONObject().put("merchantName", "Example Merchant");
}
    
```

> [!IMPORTANT]
> **Important:** Provide a user-visible merchant name. For more information, see the [`MerchantInfo` JSON object documentation](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#MerchantInfo).

Assign your base request object to a new `PaymentDataRequest` JSON object.
Then, add the payment methods supported by your application, such as any configuration of additional data
expected in the response. Finally, add information about the transaction and the merchant who makes the request:

### Kotlin

```kotlin
fun getPaymentDataRequest(priceLabel: String): JSONObject =
    baseRequest
        .put("allowedPaymentMethods", allowedPaymentMethods)
        .put("transactionInfo", getTransactionInfo(priceLabel))
        .put("merchantInfo", merchantInfo)
        .put("shippingAddressRequired", true)
        .put("shippingAddressParameters", JSONObject()
                .put("phoneNumberRequired", false)
                .put("allowedCountryCodes", JSONArray(listOf("US", "GB")))
        )
    
```

### Java

```java
public static JSONObject getPaymentDataRequest(String priceLabel) {
  try {
    return PaymentsUtil.getBaseRequest()
        .put("allowedPaymentMethods", getAllowedPaymentMethods())
        .put("transactionInfo", getTransactionInfo(priceLabel))
        .put("merchantInfo", getMerchantInfo())
        .put("shippingAddressRequired", true)
        .put("shippingAddressParameters", new JSONObject()
            .put("phoneNumberRequired", false)
            .put("allowedCountryCodes", new JSONArray(Constants.SHIPPING_SUPPORTED_COUNTRIES))
        );

  } catch (JSONException e) {
    return null;
  }
}
    
```

The
[`PaymentDataRequest`](https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentDataRequest.md.txt)
object is a
[`Parcelable`](https://developer.android.com/reference/android/os/Parcelable)
that represents a payment data request. The `PaymentDataRequest` provides information
that's necessary in order to support a payment.

For more information, see the
[`PaymentDataRequest` JSON object documentation](https://developers.google.com/pay/api/android/reference/request-objects.md.txt#PaymentDataRequest).

## Step 6: Initiate the payment process with Google Pay

To start the payment process, call the [`loadPaymentData`](https://developers.google.com/pay/api/android/reference/client.md.txt#loadPaymentData) request using the `PaymentsClient`
object. This call returns a [`Task`](https://developers.google.com/android/guides/tasks.md.txt)
object with the result of the operation.

First, create the `loadPaymentData` task, using the request created in the previous step:

### Kotlin

```kotlin
fun getLoadPaymentDataTask(priceLabel: String): Task<PaymentData> {
    val paymentDataRequestJson = PaymentsUtil.getPaymentDataRequest(priceLabel)
    val request = PaymentDataRequest.fromJson(paymentDataRequestJson.toString())
    return paymentsClient.loadPaymentData(request)
}
    
```

### Java

```java
public Task<PaymentData> getLoadPaymentDataTask(String priceLabel) {
    JSONObject paymentDataRequestJson = PaymentsUtil.getPaymentDataRequest(priceLabel);
    if (paymentDataRequestJson == null) {
        return null;
    }

    PaymentDataRequest request =
            PaymentDataRequest.fromJson(paymentDataRequestJson.toString());
    return paymentsClient.loadPaymentData(request);
}
    
```

To process the result, use one of the [activity result contracts](https://developers.google.com/android/reference/com/google/android/gms/wallet/contract/TaskResultContracts.md.txt)
in the API. This example uses [`GetPaymentDataResult`](https://developers.google.com/android/reference/com/google/android/gms/wallet/contract/TaskResultContracts.GetPaymentDataResult.md.txt)
which yields an object with information about the operation in addition to the result itself:

### Kotlin

```kotlin
private val paymentDataLauncher = registerForActivityResult(GetPaymentDataResult()) { taskResult ->
    when (taskResult.status.statusCode) {
        CommonStatusCodes.SUCCESS -> {
            taskResult.result!!.let {
                Log.i("Google Pay result:", it.toJson())
                model.setPaymentData(it)
            }
        }
        //CommonStatusCodes.CANCELED -> The user canceled
        //CommonStatusCodes.DEVELOPER_ERROR -> The API returned an error (it.status: Status)
        //else -> Handle internal and other unexpected errors
    }
}
    
```

### Java

```java
private final ActivityResultLauncher<Task<PaymentData>> paymentDataLauncher =
    registerForActivityResult(new GetPaymentDataResult(), result -> {
      int statusCode = result.getStatus().getStatusCode();
      switch (statusCode) {
        case CommonStatusCodes.SUCCESS:
          handlePaymentSuccess(result.getResult());
          break;
        //case CommonStatusCodes.CANCELED: The user canceled
        case CommonStatusCodes.DEVELOPER_ERROR:
          handleError(statusCode, result.getStatus().getStatusMessage());
          break;
        default:
          handleError(statusCode, "Unexpected non API" +
              " exception when trying to deliver the task result to an activity!");
          break;
      }
    });
    
```

Before presenting the user with a confirmation of their purchase, extract the payment token
from the `PaymentData` result object, and use this token to create the payment transaction
with your gateway.

For more information about the result object, see the
[`PaymentData` JSON object reference](https://developers.google.com/pay/api/android/reference/response-objects.md.txt#PaymentData).

Now, use the activity result launcher and the task to show the Google Pay payment selector:

### Kotlin

```kotlin
private fun requestPayment() {
    val task = model.getLoadPaymentDataTask(priceLabel = "50.2")
    task.addOnCompleteListener(paymentDataLauncher::launch)
}
      
```

### Kotlin
(coroutines)

```kotlin
private fun requestPayment() {
    lifecycleScope.launch {
        val task = model.getLoadPaymentDataTask(priceLabel = "50.2")
        paymentDataLauncher.launch(task.awaitTask())
    }
}
      
```

### Java

```kotlin
public void requestPayment(View view) {
  // The price provided to the API should include taxes and shipping.
  final Task<PaymentData> task = model.getLoadPaymentDataTask("50.2");
  task.addOnCompleteListener(paymentDataLauncher::launch);
}
      
```

> [!NOTE]
> **Note:** The coroutine sample uses an extension function ([`awaitTask()`](https://github.com/google-pay/android-quickstart/blob/f1caab23fdaadd8d133d31aeb612ecbdbdeda5ed/kotlin/app/src/main/java/com/google/android/gms/samples/pay/viewmodel/CheckoutViewModel.kt#L152)) that executes and returns the task without any handling errors.

## Step 7: Enable Callbacks using Dynamic Price Updates

> [!NOTE]
> **Note:** This API is only available from version `20.0.0` of the Google Pay library for Android (`com.google.android.gms:play-services-wallet`). For the latest version, see [setup documentation](https://developers.google.com/pay/api/android/guides/setup.md.txt).


First, update your `PaymentDataRequest` object to enable callbacks.
To support price updates based on payment method changes (such as billing address changes), include `PAYMENT_METHOD` in your `callbackIntents`.

### Kotlin

```kotlin
fun getPaymentDataRequest(price: String): JSONObject {
    return getBaseRequest()
        .put("allowedPaymentMethods", getAllowedPaymentMethods())
        .put("transactionInfo", getTransactionInfo(price))
        .put("merchantInfo", JSONObject().put("merchantName", Constants.MERCHANT_NAME))
        .put("shippingAddressRequired", true)
        .put("shippingOptionRequired", true)
        .put("shippingOptionParameters", getShippingOptionParameters())
        .put(
            "shippingAddressParameters",
            JSONObject()
                .put("phoneNumberRequired", false)
                .put("allowedCountryCodes", JSONArray(Constants.SHIPPING_SUPPORTED_COUNTRIES))
        )
        .put(
            "callbackIntents",
            JSONArray()
                .put("PAYMENT_AUTHORIZATION")
                .put("SHIPPING_ADDRESS")
                .put("SHIPPING_OPTION")
        )
}
    
```

### Java

```java
public static JSONObject getPaymentDataRequest(String priceLabel) throws JSONException {
  return getBaseRequest()
      .put("allowedPaymentMethods", getAllowedPaymentMethods())
      .put("transactionInfo", getTransactionInfo(priceLabel))
      .put("merchantInfo", new JSONObject().put("merchantName", Constants.MERCHANT_NAME))
      .put("shippingAddressRequired", true)
      .put("shippingOptionRequired", true)
      .put("shippingOptionParameters", getShippingOptionParameters())
      .put(
          "shippingAddressParameters",
          new JSONObject()
              .put("phoneNumberRequired", false)
              .put("allowedCountryCodes", new JSONArray(Constants.SHIPPING_SUPPORTED_COUNTRIES)))
      .put(
          "callbackIntents",
          new JSONArray()
              .put("PAYMENT_AUTHORIZATION")
              .put("SHIPPING_ADDRESS")
              .put("SHIPPING_OPTION"));
}
    
```

Next, implement `MerchantPaymentDataCallbacks` and `MerchantPaymentDataCallbacksService` logic by extending `BasePaymentDataCallbacks` and `BasePaymentDataCallbacksService`, respectively, to handle callback events.
If you enabled `PAYMENT_METHOD` callback intent, handle `PAYMENT_METHOD` trigger in your callback to receive billing address updates and update the transaction info accordingly.

### MerchantPaymentDataCallbacks

### Kotlin

```kotlin
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.activity

import android.os.Bundle
import android.util.Log
import com.google.android.gms.samples.pay.Constants
import com.google.android.gms.samples.pay.util.PaymentsUtil
import com.google.android.gms.wallet.PaymentData
import com.google.android.gms.wallet.callback.BasePaymentDataCallbacks
import com.google.android.gms.wallet.callback.IntermediatePaymentData
import com.google.android.gms.wallet.callback.OnCompleteListener
import com.google.android.gms.wallet.callback.PaymentAuthorizationResult
import com.google.android.gms.wallet.callback.PaymentDataRequestUpdate
import org.json.JSONException
import org.json.JSONObject

/**
 * Implementation of [BasePaymentDataCallbacks] that handles callbacks from the Google Pay
 * payment sheet.
 */
class MerchantPaymentDataCallbacks : BasePaymentDataCallbacks() {

    /**
     * onPaymentDataChanged callback - Handles payment data changes in the payment sheet such as
     * shipping address and shipping options.
     */
    override fun onPaymentDataChanged(
        request: IntermediatePaymentData?,
        onCompleteListener: OnCompleteListener<PaymentDataRequestUpdate>,
    ) {
        val newSavedState = Bundle()

        try {
            val intermediatePaymentDataJson = JSONObject(request?.toJson() ?: "{}")

            val paymentDataRequestUpdateJson = PaymentsUtil.getPaymentDataRequestUpdate(
                intermediatePaymentDataJson,
                Constants.BASE_PRICE,
            )

            newSavedState.putString("paymentDataRequestUpdate", paymentDataRequestUpdateJson.toString())

            // return the generated data to the client
            onCompleteListener.complete(
                PaymentDataRequestUpdate.fromJson(paymentDataRequestUpdateJson.toString())
                    .withUpdatedSavedState(newSavedState),
            )
        } catch (e: Exception) {
            Log.e("MerchantPaymentDataCallbacks", "onPaymentDataChanged failed", e)
        }
    }

    /**
     * onPaymentAuthorized callback - Called when a payment is authorized in the payment sheet.
     */
    override fun onPaymentAuthorized(
        request: PaymentData?,
        onCompleteListener: OnCompleteListener<PaymentAuthorizationResult>,
    ) {
        Log.i("Invocation", "onPaymentAuthorized invoked")
        val savedState = Bundle()
        val paymentAuthorizationResultJson = JSONObject()

        try {
            val paymentDataJson = JSONObject(request?.toJson() ?: "{}")
            val info = paymentDataJson.getJSONObject("paymentMethodData").getJSONObject("info")

            // example of how to check for a card network
            val cardNetwork = info.getString("cardNetwork")
            if (cardNetwork == "VISA") {
                paymentAuthorizationResultJson.put("transactionState", "SUCCESS")
            } else {
                paymentAuthorizationResultJson.put("transactionState", "ERROR")
                val error = JSONObject().apply {
                    put("reason", "PAYMENT_DATA_INVALID")
                    put("message", "Only Visa is accepted!")
                    put("intent", "PAYMENT_AUTHORIZATION")
                }
                paymentAuthorizationResultJson.put("error", error)
            }

            onCompleteListener.complete(
                PaymentAuthorizationResult.fromJson(paymentAuthorizationResultJson.toString())
                    .withUpdatedSavedState(savedState),
            )
        } catch (e: Exception) {
            Log.e("MerchantPaymentDataCallbacks", "onPaymentAuthorized failed", e)
        }
    }
}

    
```

### Java

```java
/*
 * Copyright 2020 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.activity;

import android.os.Bundle;
import android.util.Log;
import androidx.annotation.NonNull;
import com.google.android.gms.samples.pay.Constants;
import com.google.android.gms.samples.pay.util.PaymentsUtil;
import com.google.android.gms.wallet.PaymentData;
import com.google.android.gms.wallet.callback.BasePaymentDataCallbacks;
import com.google.android.gms.wallet.callback.IntermediatePaymentData;
import com.google.android.gms.wallet.callback.OnCompleteListener;
import com.google.android.gms.wallet.callback.PaymentAuthorizationResult;
import com.google.android.gms.wallet.callback.PaymentDataRequestUpdate;
import java.util.Objects;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Implementation of {@link BasePaymentDataCallbacks} that handles callbacks from the Google Pay
 * payment sheet.
 */
public class MerchantPaymentDataCallbacks extends BasePaymentDataCallbacks {

  /**
   * Handles payment data changes in the payment sheet such as shipping address and shipping
   * options. Values passed back to it will update the payment sheet.
   *
   * @param request The updated payment data from the payment sheet.
   * @param onCompleteListener The listener to call when the update is complete.
   */
  @Override
  public void onPaymentDataChanged(
      IntermediatePaymentData request,
      @NonNull OnCompleteListener<PaymentDataRequestUpdate> onCompleteListener) {
    // define prices and variables
    JSONObject paymentDataRequestUpdate;
    Bundle newSavedState = new Bundle();
    try {
      assert request != null;
      JSONObject intermediatePaymentData = new JSONObject(request.toJson());
      // define transaction info
      paymentDataRequestUpdate =
          PaymentsUtil.getPaymentDataRequestUpdate(intermediatePaymentData, Constants.BASE_PRICE);
      newSavedState.putString("paymentDataRequestUpdate", paymentDataRequestUpdate.toString());
      // return the generated data to the client
      onCompleteListener.complete(
          PaymentDataRequestUpdate.fromJson(paymentDataRequestUpdate.toString())
              .withUpdatedSavedState(newSavedState));
    } catch (JSONException e) {
      Log.e("SampleMerchantPaymentDataCallbacksService", e.getMessage(), e);
      throw new RuntimeException(e);
    }
  }

  /**
   * Called when a payment is authorized in the payment sheet. Use this callback to perform any
   * final validation on the payment data. Throwing an error will allow the user to make
   * corrections to the payment sheet.
   *
   * @param request The payment data from the payment sheet.
   * @param onCompleteListener The listener to call when the authorization is complete.
   */
  @Override
  public void onPaymentAuthorized(
      PaymentData request,
      @NonNull OnCompleteListener<PaymentAuthorizationResult> onCompleteListener) {
    Log.i("Invocation", "onPaymentAuthorized invoked");
    Bundle savedState = new Bundle();
    JSONObject paymentAuthorizationResultJson = new JSONObject();
    try {
      assert request != null;
      JSONObject paymentDataJson = new JSONObject(request.toJson());
      JSONObject info = paymentDataJson.getJSONObject("paymentMethodData").getJSONObject("info");
      // example of how to check for a card network
      String cardNetwork = info.getString("cardNetwork");
      if (cardNetwork.equals("VISA")) {
        paymentAuthorizationResultJson.put("transactionState", "SUCCESS");
      } else {
        paymentAuthorizationResultJson.put("transactionState", "ERROR");
        JSONObject error =
            new JSONObject()
                .put("reason", "PAYMENT_DATA_INVALID")
                .put("message", "Only Visa is accepted!")
                .put("intent", "PAYMENT_AUTHORIZATION");
        paymentAuthorizationResultJson.put("error", error);
      }
      onCompleteListener.complete(
          PaymentAuthorizationResult.fromJson(paymentAuthorizationResultJson.toString())
              .withUpdatedSavedState(savedState));
    } catch (JSONException e) {
      Log.e("SampleMerchantPaymentDataCallbacksService", Objects.requireNonNull(e.getMessage()));
      throw new RuntimeException(e);
    }
  }
}

    
```

### MerchantPaymentDataCallbacksService

### Kotlin

```kotlin
package com.google.android.gms.samples.pay.service

import com.google.android.gms.wallet.callback.BasePaymentDataCallbacks
import com.google.android.gms.samples.pay.activity.MerchantPaymentDataCallbacks
import com.google.android.gms.wallet.callback.BasePaymentDataCallbacksService

/**
 * Service class which hosts the payment data callbacks initiated by Google Play services
 * within a {@link PaymentsClient#loadPaymentData(PaymentDataRequest)}.
 *
 * <p>The callbacks are implemented through MerchantPaymentDataCallbacks returned from {@link #createPaymentDataCallbacks()}.
 */
class MerchantPaymentDataCallbacksService : BasePaymentDataCallbacksService() {

    override fun createPaymentDataCallbacks(): BasePaymentDataCallbacks {
        return MerchantPaymentDataCallbacks()
    }
}

    
```

### Java

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.service;

import androidx.annotation.NonNull;
import com.google.android.gms.samples.pay.activity.MerchantPaymentDataCallbacks;
import com.google.android.gms.wallet.callback.BasePaymentDataCallbacks;
import com.google.android.gms.wallet.callback.BasePaymentDataCallbacksService;

/**
 * Service class which hosts the payment data callbacks initiated by Google Play services within a
 * {@link
 * com.google.android.gms.wallet.PaymentsClient#loadPaymentData(com.google.android.gms.wallet.PaymentDataRequest)}.
 *
 * <p>The callbacks are implemented through MerchantPaymentDataCallbacks returned from {@link
 * #createPaymentDataCallbacks()}.
 */
public class MerchantPaymentDataCallbacksService extends BasePaymentDataCallbacksService {

  @NonNull
  @Override
  protected BasePaymentDataCallbacks createPaymentDataCallbacks() {
    return new MerchantPaymentDataCallbacks();
  }
}

    
```

Finally, update your AndroidManifest.xml file to specify `com.google.android.gms.permission.BIND_PAYMENTS_CALLBACK_SERVICE` as its permission and include an intent filter with the action name `com.google.android.gms.wallet.callback.PAYMENT_DATA_CALLBACKS`.

### Kotlin

```kotlin
<service
    android:name="com.google.android.gms.samples.pay.service.MerchantPaymentDataCallbacksService"
    android:permission="com.google.android.gms.permission.BIND_PAYMENTS_CALLBACK_SERVICE"
    android:enabled="true"
    android:exported="true">
    <intent-filter>
        <action android:name="com.google.android.gms.wallet.callback.PAYMENT_DATA_CALLBACKS"/>
    </intent-filter>
</service>
    
```

### Java

```java
<service
    android:name="com.google.android.gms.samples.pay.service.MerchantPaymentDataCallbacksService"
    android:enabled="true"
    android:exported="true"
    android:permission="com.google.android.gms.permission.BIND_PAYMENTS_CALLBACK_SERVICE">
  <intent-filter>
    <action android:name="com.google.android.gms.wallet.callback.PAYMENT_DATA_CALLBACKS" />
  </intent-filter>
</service>
    
```

## Put it all together

The following snippet shows a complete example for a properly configured project. For the
project-level setup steps, see
[Configure your project](https://developers.google.com/pay/api/android/guides/setup.md.txt#configure).

### Kotlin

### Activity

```kotlin
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.activity

import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.runtime.getValue
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.google.android.gms.common.api.CommonStatusCodes
import com.google.android.gms.samples.pay.Constants
import com.google.android.gms.samples.pay.R
import com.google.android.gms.samples.pay.ui.ProductScreen
import com.google.android.gms.samples.pay.viewmodel.CheckoutViewModel
import com.google.android.gms.samples.pay.viewmodel.PaymentUiState
import com.google.android.gms.tasks.Task
import com.google.android.gms.wallet.PaymentData
import com.google.android.gms.wallet.contract.TaskResultContracts.GetPaymentDataResult

class CheckoutActivity : ComponentActivity() {

    private val model: CheckoutViewModel by viewModels()

    private val paymentDataLauncher = registerForActivityResult(GetPaymentDataResult()) { taskResult ->
        when (taskResult.status.statusCode) {
            CommonStatusCodes.SUCCESS -> {
                taskResult.result?.let {
                    Log.i("Google Pay result:", it.toJson())
                    model.setPaymentData(it)
                }
            }
            CommonStatusCodes.CANCELED -> {
                // The user canceled the payment attempt
                Log.i("Google Pay result:", "Payment canceled by user")
            }
            else -> {
                // Handle internal and other unexpected errors
                Log.w("Google Pay result:", "Payment failed. Status: ${taskResult.status}")
            }
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContent {
            val payState: PaymentUiState by model.paymentUiState.collectAsStateWithLifecycle()
            ProductScreen(
                title = "Men's Tech Shell Full-Zip",
                description = "A versatile full-zip that you can wear all day long and even...",
                price = "$${Constants.BASE_PRICE}",
                image = R.drawable.ts_10_11019a,
                payUiState = payState,
                onGooglePayButtonClick = this::requestPayment,
            )
        }
    }

    private fun requestPayment() {
        val task = model.getLoadPaymentDataTask(Constants.BASE_PRICE)
        task.addOnCompleteListener(paymentDataLauncher::launch)
    }
}

    
```

### Util

```kotlin
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.util

import android.content.Context
import com.google.android.gms.samples.pay.Constants
import com.google.android.gms.wallet.PaymentsClient
import com.google.android.gms.wallet.Wallet
import java.math.BigDecimal
import java.util.Locale
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject

/**
 * Contains helper static methods for dealing with the Payments API.
 *
 * Many of the parameters used in the code are optional and are set here merely to call out their
 * existence. Please consult the documentation to learn more and feel free to remove ones not
 * relevant to your implementation.
 */
object PaymentsUtil {

    /**
     * Encapsulated shipping option parameters (set of options) definition.
     *
     * @return A [JSONObject] containing shipping options and the default selected option.
     * @throws JSONException If the JSON object is malformed.
     */
    @Throws(JSONException::class)
    fun getShippingOptionParameters(): JSONObject {
        val shippingOptionParameters = JSONObject()
        val shippingOptions = JSONArray()

        shippingOptions.put(
            createShippingOption(
                "shipping-001", "$0.00: Free shipping label", "Free Shipping example text"
            )
        )
        shippingOptions.put(
            createShippingOption(
                "shipping-002", "$1.99: Standard shipping label", "Standard shipping example text."
            )
        )
        shippingOptions.put(
            createShippingOption(
                "shipping-003", "$1000: Express shipping label", "Express shipping example text."
            )
        )
        shippingOptions.put(
            createShippingOption(
                "shipping-004", "$2000: Same-day shipping label", "Same-day shipping example text."
            )
        )

        shippingOptionParameters.put("shippingOptions", shippingOptions)
        shippingOptionParameters.put("defaultSelectedOptionId", "shipping-001")

        return shippingOptionParameters
    }

    /**
     * Defines an encapsulated shipping option.
     *
     * @param id The unique identifier for the shipping option.
     * @param label The label to display for the shipping option.
     * @param description A brief description of the shipping option.
     * @return A [JSONObject] representing the shipping option.
     * @throws JSONException If the JSON object is malformed.
     */
    @Throws(JSONException::class)
    private fun createShippingOption(id: String, label: String, description: String): JSONObject {
        return JSONObject().put("id", id).put("label", label).put("description", description)
    }

    /**
     * Encapsulated definition for a display item.
     *
     * @param label The label to display for the item.
     * @param type The type of the display item (e.g., LINE_ITEM, SUBTOTAL).
     * @param price The price of the item.
     * @return A [JSONObject] representing the display item.
     * @throws JSONException If the JSON object is malformed.
     */
    @Throws(JSONException::class)
    fun createDisplayItem(label: String, type: String, price: String): JSONObject {
        return JSONObject().put("label", label).put("type", type).put("price", price)
    }

    /**
     * Create a Google Pay API base request object with properties used in all requests.
     *
     * @return Google Pay API base request object.
     * @throws JSONException if the object is malformed.
     */
    @Throws(JSONException::class)
    private fun getBaseRequest(): JSONObject {
        return JSONObject().put("apiVersion", 2).put("apiVersionMinor", 0)
    }

    /**
     * Creates an instance of [PaymentsClient] for use in an [Context] using the
     * environment and theme set in [Constants].
     *
     * @param context is the caller's context.
     * @return An instance of [PaymentsClient].
     */
    fun createPaymentsClient(context: Context): PaymentsClient {
        val walletOptions = Wallet.WalletOptions.Builder()
            .setEnvironment(Constants.PAYMENTS_ENVIRONMENT)
            .build()
        return Wallet.getPaymentsClient(context, walletOptions)
    }

    /**
     * Gateway Integration: Identify your gateway and your app's gateway merchant identifier.
     *
     * The Google Pay API response will return an encrypted payment method capable of being charged
     * by a supported gateway after payer authorization.
     *
     * TODO: Check with your gateway on the parameters to pass and modify them in Constants.java.
     *
     * @return Payment data tokenization for the CARD payment method.
     * @throws JSONException if the object is malformed.
     * @see [PaymentMethodTokenizationSpecification](https://developers.google.com/pay/api/android/reference/object#PaymentMethodTokenizationSpecification)
     */
    @Throws(JSONException::class)
    private fun getGatewayTokenizationSpecification(): JSONObject {
        return JSONObject()
            .put("type", "PAYMENT_GATEWAY")
            .put(
                "parameters",
                JSONObject()
                    .put("gateway", "example")
                    .put("gatewayMerchantId", "exampleGatewayMerchantId")
            )
    }

    /**
     * `DIRECT` Integration: Decrypt a response directly on your servers. This configuration has
     * additional data security requirements from Google and additional PCI DSS compliance complexity.
     *
     * Please refer to the documentation for more information about `DIRECT` integration. The
     * type of integration you use depends on your payment processor.
     *
     * @return Payment data tokenization for the CARD payment method.
     * @throws JSONException if the object is malformed.
     * @see [PaymentMethodTokenizationSpecification](https://developers.google.com/pay/api/android/reference/object#PaymentMethodTokenizationSpecification)
     */
    @Throws(JSONException::class)
    private fun getDirectTokenizationSpecification(): JSONObject {
        return JSONObject()
            .put("type", "DIRECT")
            .put("parameters", JSONObject(Constants.DIRECT_TOKENIZATION_PARAMETERS))
    }

    /**
     * Card networks supported by your app and your gateway.
     *
     * TODO: Confirm card networks supported by your app and gateway & update in Constants.java.
     *
     * @return Allowed card networks.
     * @see [CardParameters](https://developers.google.com/pay/api/android/reference/object#CardParameters)
     */
    private fun getAllowedCardNetworks(): JSONArray {
        return JSONArray(Constants.SUPPORTED_NETWORKS)
    }

    /**
     * Card authentication methods supported by your app and your gateway.
     *
     * TODO: Confirm your processor supports Android device tokens on your supported card networks
     * and make updates in Constants.java.
     *
     * @return Allowed card authentication methods.
     * @see [CardParameters](https://developers.google.com/pay/api/android/reference/object#CardParameters)
     */
    private fun getAllowedCardAuthMethods(): JSONArray {
        return JSONArray(Constants.SUPPORTED_METHODS)
    }

    /**
     * Describe your app's support for the CARD payment method.
     *
     * The provided properties are applicable to both an IsReadyToPayRequest and a
     * PaymentDataRequest.
     *
     * @return A CARD PaymentMethod object describing accepted cards.
     * @throws JSONException if the object is malformed.
     * @see [PaymentMethod](https://developers.google.com/pay/api/android/reference/object#PaymentMethod)
     */
    @Throws(JSONException::class)
    private fun getBaseCardPaymentMethod(): JSONObject {
        return JSONObject()
            .put("type", "CARD")
            .put(
                "parameters",
                JSONObject()
                    .put("allowedAuthMethods", getAllowedCardAuthMethods())
                    .put("allowedCardNetworks", getAllowedCardNetworks())
                    .put("billingAddressRequired", true)
                    .put("billingAddressParameters", JSONObject().put("format", "FULL"))
            )
    }

    /**
     * Describe the expected returned payment data for the CARD payment method.
     *
     * @return A CARD PaymentMethod describing accepted cards and optional fields.
     * @throws JSONException if the object is malformed.
     * @see [PaymentMethod](https://developers.google.com/pay/api/android/reference/object#PaymentMethod)
     */
    @Throws(JSONException::class)
    private fun getCardPaymentMethod(): JSONObject {
        return getBaseCardPaymentMethod()
            .put("tokenizationSpecification", getGatewayTokenizationSpecification())
    }

    /**
     * Return a collection of payment methods allowed to complete the operation with Google Pay.
     *
     * @return A JSONArray object with the list of payment methods.
     * @throws JSONException if the JSON object is malformed.
     */
    @Throws(JSONException::class)
    fun getAllowedPaymentMethods(): JSONArray {
        return JSONArray().put(getCardPaymentMethod())
    }

    /**
     * An object describing accepted forms of payment by your app, used to determine a viewer's
     * readiness to pay.
     *
     * @return API version and payment methods supported by the app.
     * @throws JSONException if the object is malformed.
     * @see [IsReadyToPayRequest](https://developers.google.com/pay/api/android/reference/object#IsReadyToPayRequest)
     */
    @Throws(JSONException::class)
    fun getIsReadyToPayRequest(): JSONObject {
        return getBaseRequest()
            .put("allowedPaymentMethods", JSONArray().put(getBaseCardPaymentMethod()))
    }

    /**
     * Provide Google Pay API with a payment amount, currency, and amount status.
     *
     * @param price The price of the product.
     * @return information about the requested payment.
     * @throws JSONException if the object is malformed.
     * @see [TransactionInfo](https://developers.google.com/pay/api/android/reference/object#TransactionInfo)
     */
    @Throws(JSONException::class)
    fun getTransactionInfo(price: String): JSONObject {
        return JSONObject()
            .put("totalPrice", price)
            .put("totalPriceLabel", "Total")
            .put("totalPriceStatus", "FINAL")
            .put("countryCode", Constants.COUNTRY_CODE)
            .put("currencyCode", Constants.CURRENCY_CODE)
            .put("checkoutOption", "COMPLETE_IMMEDIATE_PURCHASE")
            .put("displayItems", getDisplayItems(price))
    }

    /**
     * Provide Google Pay API with a payment amount, currency, and amount status.
     *
     * @param price The price of the product.
     * @return information about the requested payment.
     * @throws JSONException if the object is malformed.
     * @see [TransactionInfo](https://developers.google.com/pay/api/android/reference/object#TransactionInfo)
     */
    @Throws(JSONException::class)
    fun getDisplayItems(price: String): JSONArray {
        val displayItems = JSONArray()
        val tax = String.format(
            Locale.getDefault(), "%.2f", BigDecimal(price).multiply(BigDecimal(Constants.TAX_RATE.toString()))
        )
        displayItems.put(createDisplayItem("Total", "SUBTOTAL", price))
        displayItems.put(createDisplayItem("Tax", "TAX", tax))
        return displayItems
    }

    /**
     * An object describing information to be requested via the Google Pay payment sheet.
     *
     * @param price the price of the product
     * @return Payment data expected by your app.
     * @throws JSONException If the object is malformed.
     * @see [PaymentDataRequest](https://developers.google.com/pay/api/android/reference/object#PaymentDataRequest)
     */
    @Throws(JSONException::class)
    fun getPaymentDataRequest(price: String): JSONObject {
        return getBaseRequest()
            .put("allowedPaymentMethods", getAllowedPaymentMethods())
            .put("transactionInfo", getTransactionInfo(price))
            .put("merchantInfo", JSONObject().put("merchantName", Constants.MERCHANT_NAME))
            .put("shippingAddressRequired", true)
            .put("shippingOptionRequired", true)
            .put("shippingOptionParameters", getShippingOptionParameters())
            .put(
                "shippingAddressParameters",
                JSONObject()
                    .put("phoneNumberRequired", false)
                    .put("allowedCountryCodes", JSONArray(Constants.SHIPPING_SUPPORTED_COUNTRIES))
            )
            .put(
                "callbackIntents",
                JSONArray()
                    .put("PAYMENT_AUTHORIZATION")
                    .put("SHIPPING_ADDRESS")
                    .put("SHIPPING_OPTION")
            )
    }

    /**
     * An object describing information to be updated via the Google Pay payment sheet.
     *
     * @param intermediatePaymentData the intermediate payment data containing user selections.
     * @param price the price of the product.
     * @return Payment data expected by your app.
     * @throws JSONException If the object is malformed.
     * @see [PaymentDataRequest](https://developers.google.com/pay/api/android/reference/object#PaymentDataRequest)
     */
    @Throws(JSONException::class)
    fun getPaymentDataRequestUpdate(
        intermediatePaymentData: JSONObject, price: String
    ): JSONObject {
        // Populate the payment request with default data
        val paymentDataRequestUpdate = JSONObject()
        paymentDataRequestUpdate.put("newTransactionInfo", getTransactionInfo(price))

        val shippingOptionParameters = getShippingOptionParameters()
        paymentDataRequestUpdate.put("newShippingOptionParameters", shippingOptionParameters)

        // Update the selected shippingOption based on the user selection
        var shippingOptionId = "shipping-001"
        if (intermediatePaymentData.has("shippingOptionData")
            && intermediatePaymentData.getJSONObject("shippingOptionData").has("id")
        ) {
            shippingOptionId =
                intermediatePaymentData.getJSONObject("shippingOptionData").getString("id")
            paymentDataRequestUpdate
                .getJSONObject("newShippingOptionParameters")
                .put("defaultSelectedOptionId", shippingOptionId)
        }
        // Get display item for the selected shipping method and add it to paymentDataRequestUpdate
        val shippingDisplayItem = getShippingDisplayItem(shippingOptionId)
        paymentDataRequestUpdate
            .getJSONObject("newTransactionInfo")
            .getJSONArray("displayItems")
            .put(shippingDisplayItem)

        // define shipping price
        if (shippingDisplayItem.has("price")) {
            // Update displayItems with the new price.
            val totalPrice =
                paymentDataRequestUpdate.getJSONObject("newTransactionInfo").getString("totalPrice")
            val shippingPrice = shippingDisplayItem.getString("price")
            val newTotalPriceValue = BigDecimal(totalPrice).add(BigDecimal(shippingPrice))
            paymentDataRequestUpdate
                .getJSONObject("newTransactionInfo")
                .put("totalPrice", String.format(Locale.getDefault(), "%.2f", newTotalPriceValue))
        }
        return paymentDataRequestUpdate
    }

    /**
     * Get a display item object for the selected shipping option.
     *
     * @param shippingOptionId the ID of the selected shipping option.
     * @return a JSONObject containing the display item for the shipping option.
     * @throws JSONException if the shipping option is invalid.
     */
    @Throws(JSONException::class)
    private fun getShippingDisplayItem(shippingOptionId: String?): JSONObject {
        if (shippingOptionId == null) {
            return JSONObject()
        }

        return when (shippingOptionId) {
            "shipping-001" -> createDisplayItem("Shipping", "LINE_ITEM", "0")
            "shipping-002" -> createDisplayItem("Shipping", "LINE_ITEM", "1.99")
            "shipping-003" -> createDisplayItem("Shipping", "LINE_ITEM", "1000")
            "shipping-004" -> createDisplayItem("Shipping", "LINE_ITEM", "2000")
            "shipping_option_unselected" -> JSONObject()
            else -> throw JSONException("This shipping option is invalid for the given address")
        }
    }
}

      
```

### View model

```kotlin
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.viewmodel

import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.google.android.gms.common.api.ApiException
import com.google.android.gms.common.api.CommonStatusCodes
import com.google.android.gms.samples.pay.util.PaymentsUtil
import com.google.android.gms.tasks.CancellationTokenSource
import com.google.android.gms.tasks.Task
import com.google.android.gms.wallet.IsReadyToPayRequest
import com.google.android.gms.wallet.PaymentData
import com.google.android.gms.wallet.PaymentDataRequest
import com.google.android.gms.wallet.PaymentsClient
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.tasks.await
import org.json.JSONException
import org.json.JSONObject
import java.util.concurrent.Executor
import kotlin.coroutines.resume

class CheckoutViewModel(application: Application) : AndroidViewModel(application) {

    private val _paymentUiState: MutableStateFlow<PaymentUiState> =
        MutableStateFlow(PaymentUiState.NotStarted)
    val paymentUiState: StateFlow<PaymentUiState> = _paymentUiState.asStateFlow()

    // A client for interacting with the Google Pay API.
    private val paymentsClient: PaymentsClient = PaymentsUtil.createPaymentsClient(application)

    init {
        viewModelScope.launch {
            verifyGooglePayReadiness()
        }
    }

    /**
     * Determine the user's ability to pay with a payment method supported by your app and display
     * a Google Pay payment button.
     */
    private suspend fun verifyGooglePayReadiness() {
        val newUiState: PaymentUiState = try {
            if (fetchCanUseGooglePay()) {
                PaymentUiState.Available
            } else {
                PaymentUiState.Error(CommonStatusCodes.ERROR)
            }
        } catch (exception: ApiException) {
            PaymentUiState.Error(exception.statusCode, exception.message)
        }

        _paymentUiState.update { newUiState }
    }

    /**
     * Determine the user's ability to pay with a payment method supported by your app.
     */
    private suspend fun fetchCanUseGooglePay(): Boolean {
        val request = IsReadyToPayRequest.fromJson(PaymentsUtil.getIsReadyToPayRequest().toString())
        return paymentsClient.isReadyToPay(request).await()
    }

    /**
     * Creates a [Task] that starts the payment process with the transaction details included.
     *
     * @param price the price of the product
     * @return a [Task] with the payment information.
     * @see [PaymentDataRequest](https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentsClient#loadPaymentData(com.google.android.gms.wallet.PaymentDataRequest))
     */
    fun getLoadPaymentDataTask(price: String): Task<PaymentData> {
        val paymentDataRequestJson = PaymentsUtil.getPaymentDataRequest(price)
        val request = PaymentDataRequest.fromJson(paymentDataRequestJson.toString())
        return paymentsClient.loadPaymentData(request)
    }

    /**
     * At this stage, the user has already seen a popup informing them an error occurred. Normally,
     * only logging is required.
     *
     * @param statusCode will hold the value of any constant from CommonStatusCode or one of the
     * WalletConstants.ERROR_CODE_* constants.
     * @see [Wallet Constants Library](https://developers.google.com/android/reference/com/google/android/gms/wallet/WalletConstants.constant-summary)
     */
    private fun handleError(statusCode: Int, message: String?) {
        Log.e("Google Pay API error", "Error code: $statusCode, Message: $message")
    }

    fun setPaymentData(paymentData: PaymentData) {
        val payState = extractPaymentBillingName(paymentData)?.let {
            PaymentUiState.PaymentCompleted(payerName = it)
        } ?: PaymentUiState.Error(CommonStatusCodes.INTERNAL_ERROR)

        _paymentUiState.update { payState }
    }

    private fun extractPaymentBillingName(paymentData: PaymentData): String? {
        val paymentInformation = paymentData.toJson()

        try {
            // Token will be null if PaymentDataRequest was not constructed using fromJson(String).
            val paymentMethodData =
                JSONObject(paymentInformation).getJSONObject("paymentMethodData")
            val billingName = paymentMethodData.getJSONObject("info")
                .getJSONObject("billingAddress").getString("name")
            Log.d("BillingName", billingName)

            // Logging token string.
            Log.d(
                "Google Pay token", paymentMethodData
                    .getJSONObject("tokenizationData")
                    .getString("token")
            )

            return billingName
        } catch (error: JSONException) {
            Log.e("handlePaymentSuccess", "Error: $error")
        }

        return null
    }
}

abstract class PaymentUiState internal constructor() {
    object NotStarted : PaymentUiState()
    object Available : PaymentUiState()
    class PaymentCompleted(val payerName: String) : PaymentUiState()
    class Error(val code: Int, val message: String? = null) : PaymentUiState()
}

suspend fun <T> Task<T>.awaitTask(cancellationTokenSource: CancellationTokenSource? = null): Task<T> {
    return if (isComplete) this else suspendCancellableCoroutine { cont ->
        // Run the callback directly to avoid unnecessarily scheduling on the main thread.
        addOnCompleteListener(DirectExecutor, cont::resume)

        cancellationTokenSource?.let { cancellationSource ->
            cont.invokeOnCancellation { cancellationSource.cancel() }
        }
    }
}

/**
 * An [Executor] that just directly executes the [Runnable].
 */
private object DirectExecutor : Executor {
    override fun execute(r: Runnable) {
        r.run()
    }
}

    
```

### Constants

```kotlin
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay

import com.google.android.gms.wallet.WalletConstants

/**
 * This file contains several constants you must edit before proceeding.
 * Please take a look at PaymentsUtil.java to see where the constants are used and to potentially
 * remove ones not relevant to your integration.
 *
 *
 * Required changes:
 *
 *  1.  Update SUPPORTED_NETWORKS and SUPPORTED_METHODS if required (consult your processor if
 * unsure)
 *  1.  Update CURRENCY_CODE to the currency you use.
 *  1.  Update SHIPPING_SUPPORTED_COUNTRIES to list the countries where you currently ship. If this
 * is not applicable to your app, remove the relevant bits from PaymentsUtil.java.
 *  1.  If you're integrating with your `PAYMENT_GATEWAY`, update
 * PAYMENT_GATEWAY_TOKENIZATION_NAME and PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS per the
 * instructions they provided. You don't need to update DIRECT_TOKENIZATION_PUBLIC_KEY.
 *  1.  If you're using `DIRECT` integration, please edit protocol version and public key as
 * per the instructions.
 */
object Constants {
    /**
     * Changing this to ENVIRONMENT_PRODUCTION will make the API return chargeable card information.
     * Please refer to the documentation to read about the required steps needed to enable
     * ENVIRONMENT_PRODUCTION.
     *
     * @value #PAYMENTS_ENVIRONMENT
     */
    const val PAYMENTS_ENVIRONMENT = WalletConstants.ENVIRONMENT_TEST

    /**
     * The allowed networks to be requested from the API. If the user has cards from networks not
     * specified here in their account, these will not be offered for them to choose in the popup.
     *
     * @value #SUPPORTED_NETWORKS
     */
    val SUPPORTED_NETWORKS = listOf(
        "AMEX",
        "DISCOVER",
        "JCB",
        "MASTERCARD",
        "VISA"
    )

    /**
     * The Google Pay API may return cards on file on Google.com (PAN_ONLY) and/or a device token on
     * an Android device authenticated with a 3-D Secure cryptogram (CRYPTOGRAM_3DS).
     *
     * @value #SUPPORTED_METHODS
     */
    val SUPPORTED_METHODS = listOf(
        "PAN_ONLY",
        "CRYPTOGRAM_3DS"
    )

    /**
     * Required by the API, but not visible to the user.
     *
     * @value #COUNTRY_CODE Your local country
     */
    const val COUNTRY_CODE = "US"

    /**
     * Required by the API, but not visible to the user.
     *
     * @value #CURRENCY_CODE Your local currency
     */
    const val CURRENCY_CODE = "USD"

    /**
     * Supported countries for shipping (use ISO 3166-1 alpha-2 country codes). Relevant only when
     * requesting a shipping address.
     *
     * @value #SHIPPING_SUPPORTED_COUNTRIES
     */
    val SHIPPING_SUPPORTED_COUNTRIES = listOf("US", "GB")

    /**
     * The name of your payment processor/gateway. Please refer to their documentation for more
     * information.
     *
     * @value #PAYMENT_GATEWAY_TOKENIZATION_NAME
     */
    const val PAYMENT_GATEWAY_TOKENIZATION_NAME = "example"

    /**
     * Custom parameters required by the processor/gateway.
     * In many cases, your processor / gateway will only require a gatewayMerchantId.
     * Please refer to your processor's documentation for more information. The number of parameters
     * required and their names vary depending on the processor.
     *
     * @value #PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS
     */
    val PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS = mapOf(
        "gateway" to PAYMENT_GATEWAY_TOKENIZATION_NAME,
        "gatewayMerchantId" to "exampleGatewayMerchantId"
    )

    /**
     * Only used for `DIRECT` tokenization. Can be removed when using `PAYMENT_GATEWAY`
     * tokenization.
     *
     * @value #DIRECT_TOKENIZATION_PUBLIC_KEY
     */
    const val DIRECT_TOKENIZATION_PUBLIC_KEY = "REPLACE_ME"

    /**
     * Parameters required for `DIRECT` tokenization.
     * Only used for `DIRECT` tokenization. Can be removed when using `PAYMENT_GATEWAY`
     * tokenization.
     *
     * @value #DIRECT_TOKENIZATION_PARAMETERS
     */
    val DIRECT_TOKENIZATION_PARAMETERS = mapOf(
        "protocolVersion" to "ECv2",
        "publicKey" to DIRECT_TOKENIZATION_PUBLIC_KEY
    )

    /**
     * A coefficient to calculate tax rates.
     *
     * @value #TAX_RATE The rate at which you want to calculate tax.
     */
    const val TAX_RATE = 0.35

    /**
     * The default price for the product.
     *
     * @value #BASE_PRICE
     */
    const val BASE_PRICE = "50.20"

    /**
     * The name of the merchant.
     *
     * @value #MERCHANT_NAME
     */
    const val MERCHANT_NAME = "Example Merchant"
}

    
```

### Java

### Activity

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import androidx.activity.result.ActivityResultLauncher;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProvider;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.samples.pay.Constants;
import com.google.android.gms.samples.pay.R;
import com.google.android.gms.samples.pay.databinding.ActivityCheckoutBinding;
import com.google.android.gms.samples.pay.util.PaymentsUtil;
import com.google.android.gms.samples.pay.viewmodel.CheckoutViewModel;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.wallet.PaymentData;
import com.google.android.gms.wallet.button.ButtonOptions;
import com.google.android.gms.wallet.button.PayButton;
import com.google.android.gms.wallet.contract.TaskResultContracts.GetPaymentDataResult;
import java.util.Locale;
import org.json.JSONException;
import org.json.JSONObject;

/** Checkout implementation for the app. */
public class CheckoutActivity extends AppCompatActivity {

  private CheckoutViewModel model;

  private PayButton googlePayButton;

  private final ActivityResultLauncher<Task<PaymentData>> paymentDataLauncher =
      registerForActivityResult(
          new GetPaymentDataResult(),
          result -> {
            int statusCode = result.getStatus().getStatusCode();
            switch (statusCode) {
              case CommonStatusCodes.SUCCESS:
                handlePaymentSuccess(result.getResult());
                break;
              // case CommonStatusCodes.CANCELED: The user canceled
              case CommonStatusCodes.DEVELOPER_ERROR:
                handleError(statusCode, result.getStatus().getStatusMessage());
                break;
              default:
                handleError(
                    statusCode,
                    "Unexpected non API"
                        + " exception when trying to deliver the task result to an activity!");
                break;
            }
          });

  /**
   * Initialize the Google Pay API on creation of the activity.
   *
   * @see Activity#onCreate(android.os.Bundle)
   */
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    initializeUi();

    // Check Google Pay availability
    model = new ViewModelProvider(this).get(CheckoutViewModel.class);
    model.canUseGooglePay.observe(this, this::setGooglePayAvailable);
  }

  private void initializeUi() {

    // Use view binding to access the UI elements
    ActivityCheckoutBinding layoutBinding = ActivityCheckoutBinding.inflate(getLayoutInflater());
    setContentView(layoutBinding.getRoot());

    // Set the price label from the constant
    layoutBinding.detailPrice.setText(getString(R.string.price_format, Constants.BASE_PRICE));

    // The Google Pay button is a layout file -- take the root view
    googlePayButton = layoutBinding.googlePayButton;
    try {
      googlePayButton.initialize(
          ButtonOptions.newBuilder()
              .setAllowedPaymentMethods(PaymentsUtil.getAllowedPaymentMethods().toString())
              .build());
      googlePayButton.setOnClickListener(this::requestPayment);
    } catch (JSONException e) {
      Log.e("initializeUi", "Error initializing Google Pay button", e);
    }
  }

  /**
   * If isReadyToPay returned {@code true}, show the button and hide the "checking" text. Otherwise,
   * notify the user that Google Pay is not available. Please adjust to fit in with your current
   * user flow. You are not required to explicitly let the user know if isReadyToPay returns {@code
   * false}.
   *
   * @param available isReadyToPay API response.
   */
  private void setGooglePayAvailable(boolean available) {
    if (available) {
      googlePayButton.setVisibility(View.VISIBLE);
    } else {
      Toast.makeText(this, R.string.google_pay_status_unavailable, Toast.LENGTH_LONG).show();
    }
  }

  /**
   * Handles the request to start a payment.
   *
   * @param view The view that triggered the request.
   */
  public void requestPayment(View view) {
    // The price provided to the API should include taxes and shipping.
    try {
      // provide the default starting price here.
      final Task<PaymentData> task = model.getLoadPaymentDataTask(Constants.BASE_PRICE);
      task.addOnCompleteListener(paymentDataLauncher::launch);
    } catch (JSONException e) {
      handleError(CommonStatusCodes.INTERNAL_ERROR, "The payment data task couldn't be created.");
    }
  }

  /**
   * PaymentData response object contains the payment information, as well as any additional
   * requested information, such as billing and shipping address.
   *
   * @param paymentData A response object returned by Google after a payer approves payment.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentData">PaymentData</a>
   */
  private void handlePaymentSuccess(@Nullable PaymentData paymentData) {
    if (paymentData == null) {
      return;
    }

    final String paymentInfo = paymentData.toJson();

    try {
      JSONObject paymentMethodData = new JSONObject(paymentInfo).getJSONObject("paymentMethodData");
      // If the gateway is set to "example", no payment information is returned - instead, the
      // token will only consist of "examplePaymentMethodToken".

      final JSONObject info = paymentMethodData.getJSONObject("info");
      final String billingName = info.getJSONObject("billingAddress").getString("name");
      Toast.makeText(this, getString(R.string.payments_show_name, billingName), Toast.LENGTH_LONG)
          .show();

      // Logging token string.
      Log.d(
          "Google Pay token",
          paymentMethodData.getJSONObject("tokenizationData").getString("token"));

      startActivity(new Intent(this, CheckoutSuccessActivity.class));

    } catch (JSONException e) {
      Log.e("handlePaymentSuccess", "Error: " + e);
    }
  }

  /**
   * At this stage, the user has already seen a popup informing them an error occurred. Normally,
   * only logging is required.
   *
   * @param statusCode holds the value of any constant from CommonStatusCode or one of the
   *     WalletConstants.ERROR_CODE_* constants.
   * @param message An optional error message.
   * @see <a
   *     href="https://developers.google.com/android/reference/com/google/android/gms/wallet/WalletConstants#constant-summary">Wallet
   *     Constants Library</a>
   */
  private void handleError(int statusCode, @Nullable String message) {
    Log.e(
        "loadPaymentData failed",
        String.format(Locale.getDefault(), "Error code: %d, Message: %s", statusCode, message));
  }
}

    
```

### Success activity

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.activity;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.gms.samples.pay.databinding.ActivityCheckoutSuccessBinding;

/** An activity that is displayed when a payment completes successfully. */
public class CheckoutSuccessActivity extends AppCompatActivity {

  /**
   * Initializes the activity.
   *
   * @param savedInstanceState If the activity is being re-initialized after previously being shut
   *     down then this Bundle contains the data it most recently supplied in {@link
   *     #onSaveInstanceState}. <b><i>Note: Otherwise it is null.</i></b>
   */
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    ActivityCheckoutSuccessBinding layoutBinding =
        ActivityCheckoutSuccessBinding.inflate(getLayoutInflater());
    setContentView(layoutBinding.getRoot());
  }
}

    
```

### Util

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.util;

import static com.google.android.gms.samples.pay.Constants.TAX_RATE;

import android.content.Context;
import com.google.android.gms.samples.pay.Constants;
import com.google.android.gms.wallet.PaymentsClient;
import com.google.android.gms.wallet.Wallet;
import java.math.BigDecimal;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Contains helper static methods for dealing with the Payments API.
 *
 * <p>Many of the parameters used in the code are optional and are set here merely to call out their
 * existence. Please consult the documentation to learn more and feel free to remove ones not
 * relevant to your implementation.
 */
public class PaymentsUtil {

  private PaymentsUtil() {}

  /**
   * Encapsulated shipping option parameters (set of options) definition.
   *
   * @return A {@link JSONObject} containing shipping options and the default selected option.
   * @throws JSONException If the JSON object is malformed.
   */
  public static JSONObject getShippingOptionParameters() throws JSONException {
    JSONObject shippingOptionParameters = new JSONObject();
    JSONArray shippingOptions = new JSONArray();

    shippingOptions.put(
        createShippingOption(
            "shipping-001", "$0.00: Free shipping label", "Free Shipping example text"));
    shippingOptions.put(
        createShippingOption(
            "shipping-002", "$1.99: Standard shipping label", "Standard shipping example text."));
    shippingOptions.put(
        createShippingOption(
            "shipping-003", "$1000: Express shipping label", "Express shipping example text."));
    shippingOptions.put(
        createShippingOption(
            "shipping-004", "$2000: Same-day shipping label", "Same-day shipping example text."));

    shippingOptionParameters.put("shippingOptions", shippingOptions);
    shippingOptionParameters.put("defaultSelectedOptionId", "shipping-001");

    return shippingOptionParameters;
  }

  /**
   * Defines an encapsulated shipping option.
   *
   * @param id The unique identifier for the shipping option.
   * @param label The label to display for the shipping option.
   * @param description A brief description of the shipping option.
   * @return A {@link JSONObject} representing the shipping option.
   * @throws JSONException If the JSON object is malformed.
   */
  private static JSONObject createShippingOption(String id, String label, String description)
      throws JSONException {
    return new JSONObject().put("id", id).put("label", label).put("description", description);
  }

  /**
   * Encapsulated definition for a display item.
   *
   * @param label The label to display for the item.
   * @param type The type of the display item (e.g., LINE_ITEM, SUBTOTAL).
   * @param price The price of the item.
   * @return A {@link JSONObject} representing the display item.
   * @throws JSONException If the JSON object is malformed.
   */
  public static JSONObject createDisplayItem(String label, String type, String price)
      throws JSONException {
    return new JSONObject().put("label", label).put("type", type).put("price", price);
  }

  /**
   * Create a Google Pay API base request object with properties used in all requests.
   *
   * @return Google Pay API base request object.
   * @throws JSONException if the object is malformed.
   */
  private static JSONObject getBaseRequest() throws JSONException {
    return new JSONObject().put("apiVersion", 2).put("apiVersionMinor", 0);
  }

  /**
   * Creates an instance of {@link PaymentsClient} for use in an {@link Context} using the
   * environment and theme set in {@link Constants}.
   *
   * @param context is the caller's context.
   * @return An instance of {@link PaymentsClient}.
   */
  public static PaymentsClient createPaymentsClient(Context context) {
    Wallet.WalletOptions walletOptions =
        new Wallet.WalletOptions.Builder().setEnvironment(Constants.PAYMENTS_ENVIRONMENT).build();
    return Wallet.getPaymentsClient(context, walletOptions);
  }

  /**
   * Gateway Integration: Identify your gateway and your app's gateway merchant identifier.
   *
   * <p>The Google Pay API response will return an encrypted payment method capable of being charged
   * by a supported gateway after payer authorization.
   *
   * <p>TODO: Check with your gateway on the parameters to pass and modify them in Constants.java.
   *
   * @return Payment data tokenization for the CARD payment method.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentMethodTokenizationSpecification">PaymentMethodTokenizationSpecification</a>
   */
  private static JSONObject getGatewayTokenizationSpecification() throws JSONException {
    return new JSONObject()
        .put("type", "PAYMENT_GATEWAY")
        .put(
            "parameters",
            new JSONObject()
                .put("gateway", "example")
                .put("gatewayMerchantId", "exampleGatewayMerchantId"));
  }

  /**
   * {@code DIRECT} Integration: Decrypt a response directly on your servers. This configuration has
   * additional data security requirements from Google and additional PCI DSS compliance complexity.
   *
   * <p>Please refer to the documentation for more information about {@code DIRECT} integration. The
   * type of integration you use depends on your payment processor.
   *
   * @return Payment data tokenization for the CARD payment method.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentMethodTokenizationSpecification">PaymentMethodTokenizationSpecification</a>
   */
  private static JSONObject getDirectTokenizationSpecification()
      throws JSONException, RuntimeException {
    return new JSONObject()
        .put("type", "DIRECT")
        .put("parameters", new JSONObject(Constants.DIRECT_TOKENIZATION_PARAMETERS));
  }

  /**
   * Card networks supported by your app and your gateway.
   *
   * <p>TODO: Confirm card networks supported by your app and gateway & update in Constants.java.
   *
   * @return Allowed card networks.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#CardParameters">CardParameters</a>
   */
  private static JSONArray getAllowedCardNetworks() {
    return new JSONArray(Constants.SUPPORTED_NETWORKS);
  }

  /**
   * Card authentication methods supported by your app and your gateway.
   *
   * <p>TODO: Confirm your processor supports Android device tokens on your supported card networks
   * and make updates in Constants.java.
   *
   * @return Allowed card authentication methods.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#CardParameters">CardParameters</a>
   */
  private static JSONArray getAllowedCardAuthMethods() {
    return new JSONArray(Constants.SUPPORTED_METHODS);
  }

  /**
   * Describe your app's support for the CARD payment method.
   *
   * <p>The provided properties are applicable to both an IsReadyToPayRequest and a
   * PaymentDataRequest.
   *
   * @return A CARD PaymentMethod object describing accepted cards.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentMethod">PaymentMethod</a>
   */
  private static JSONObject getBaseCardPaymentMethod() throws JSONException {
    return new JSONObject()
        .put("type", "CARD")
        .put(
            "parameters",
            new JSONObject()
                .put("allowedAuthMethods", getAllowedCardAuthMethods())
                .put("allowedCardNetworks", getAllowedCardNetworks())
                .put("billingAddressRequired", true)
                .put("billingAddressParameters", new JSONObject().put("format", "FULL")));
  }

  /**
   * Describe the expected returned payment data for the CARD payment method.
   *
   * @return A CARD PaymentMethod describing accepted cards and optional fields.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentMethod">PaymentMethod</a>
   */
  private static JSONObject getCardPaymentMethod() throws JSONException {
    return getBaseCardPaymentMethod()
        .put("tokenizationSpecification", getGatewayTokenizationSpecification());
  }

  /**
   * Return a collection of payment methods allowed to complete the operation with Google Pay.
   *
   * @return A JSONArray object with the list of payment methods.
   * @throws JSONException if the JSON object is malformed.
   */
  public static JSONArray getAllowedPaymentMethods() throws JSONException {
    return new JSONArray().put(getCardPaymentMethod());
  }

  /**
   * An object describing accepted forms of payment by your app, used to determine a viewer's
   * readiness to pay.
   *
   * @return API version and payment methods supported by the app.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#IsReadyToPayRequest">IsReadyToPayRequest</a>
   */
  public static JSONObject getIsReadyToPayRequest() throws JSONException {
    return getBaseRequest()
        .put("allowedPaymentMethods", new JSONArray().put(getBaseCardPaymentMethod()));
  }

  /**
   * Provide Google Pay API with a payment amount, currency, and amount status.
   *
   * @param price The price of the product.
   * @return information about the requested payment.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#TransactionInfo">TransactionInfo</a>
   */
  public static JSONObject getTransactionInfo(String price) throws JSONException {
    return new JSONObject()
        .put("totalPrice", price)
        .put("totalPriceLabel", "Total")
        .put("totalPriceStatus", "FINAL")
        .put("countryCode", Constants.COUNTRY_CODE)
        .put("currencyCode", Constants.CURRENCY_CODE)
        .put("checkoutOption", "COMPLETE_IMMEDIATE_PURCHASE")
        .put("displayItems", getDisplayItems(price));
  }

  /**
   * Provide Google Pay API with a payment amount, currency, and amount status.
   *
   * @param price The price of the product.
   * @return information about the requested payment.
   * @throws JSONException if the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#TransactionInfo">TransactionInfo</a>
   */
  public static JSONArray getDisplayItems(String price) throws JSONException {
    JSONArray displayItems = new JSONArray();
    String tax =
        String.format(
            Locale.getDefault(), "%.2f", new BigDecimal(price).multiply(new BigDecimal(TAX_RATE)));
    displayItems.put(createDisplayItem("Total", "SUBTOTAL", price));
    displayItems.put(createDisplayItem("Tax", "TAX", tax));
    return displayItems;
  }

  /**
   * An object describing information to be requested via the Google Pay payment sheet.
   *
   * @param priceLabel the price of the product
   * @return Payment data expected by your app.
   * @throws JSONException If the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentDataRequest">PaymentDataRequest</a>
   */
  public static JSONObject getPaymentDataRequest(String priceLabel) throws JSONException {
    return getBaseRequest()
        .put("allowedPaymentMethods", getAllowedPaymentMethods())
        .put("transactionInfo", getTransactionInfo(priceLabel))
        .put("merchantInfo", new JSONObject().put("merchantName", Constants.MERCHANT_NAME))
        .put("shippingAddressRequired", true)
        .put("shippingOptionRequired", true)
        .put("shippingOptionParameters", getShippingOptionParameters())
        .put(
            "shippingAddressParameters",
            new JSONObject()
                .put("phoneNumberRequired", false)
                .put("allowedCountryCodes", new JSONArray(Constants.SHIPPING_SUPPORTED_COUNTRIES)))
        .put(
            "callbackIntents",
            new JSONArray()
                .put("PAYMENT_AUTHORIZATION")
                .put("SHIPPING_ADDRESS")
                .put("SHIPPING_OPTION"));
  }

  /**
   * An object describing information to be updated via the Google Pay payment sheet.
   *
   * @param intermediatePaymentData the intermediate payment data containing user selections.
   * @param priceLabel the price of the product.
   * @return Payment data expected by your app.
   * @throws JSONException If the object is malformed.
   * @see <a
   *     href="https://developers.google.com/pay/api/android/reference/object#PaymentDataRequest">PaymentDataRequest</a>
   */
  public static JSONObject getPaymentDataRequestUpdate(
      JSONObject intermediatePaymentData, String priceLabel) throws JSONException {
    // Populate the payment request with default data
    JSONObject paymentDataRequestUpdate = new JSONObject();
    paymentDataRequestUpdate.put("newTransactionInfo", getTransactionInfo(priceLabel));

    JSONObject shippingOptionParameters = getShippingOptionParameters();
    paymentDataRequestUpdate.put("newShippingOptionParameters", shippingOptionParameters);

    // Update the selected shippingOption based on the user selection
    String shippingOptionId = "shipping-001";
    if (intermediatePaymentData.has("shippingOptionData")
        && intermediatePaymentData.getJSONObject("shippingOptionData").has("id")) {
      shippingOptionId =
          intermediatePaymentData.getJSONObject("shippingOptionData").getString("id");
      paymentDataRequestUpdate
          .getJSONObject("newShippingOptionParameters")
          .put("defaultSelectedOptionId", shippingOptionId);
    }
    // Get display item for the selected shipping method and add it to paymentDataRequestUpdate
    JSONObject shippingDisplayItem = getShippingDisplayItem(shippingOptionId);
    paymentDataRequestUpdate
        .getJSONObject("newTransactionInfo")
        .getJSONArray("displayItems")
        .put(shippingDisplayItem);

    // define shipping price
    if (shippingDisplayItem.has("price")) {
      // Update displayItems with the new price.
      String totalPrice =
          paymentDataRequestUpdate.getJSONObject("newTransactionInfo").getString("totalPrice");
      String shippingPrice = shippingDisplayItem.getString("price");
      BigDecimal newTotalPriceValue = new BigDecimal(totalPrice).add(new BigDecimal(shippingPrice));
      paymentDataRequestUpdate
          .getJSONObject("newTransactionInfo")
          .put("totalPrice", String.format(Locale.getDefault(), "%.2f", newTotalPriceValue));
    }
    return paymentDataRequestUpdate;
  }

  /**
   * Get a display item object for the selected shipping option.
   *
   * @param shippingOptionId the ID of the selected shipping option.
   * @return a JSONObject containing the display item for the shipping option.
   * @throws JSONException if the shipping option is invalid.
   */
  private static JSONObject getShippingDisplayItem(String shippingOptionId) throws JSONException {
    if (shippingOptionId == null) {
      return new JSONObject();
    }

    switch (shippingOptionId) {
      case "shipping-001":
        return createDisplayItem("Shipping", "LINE_ITEM", "0");
      case "shipping-002":
        return createDisplayItem("Shipping", "LINE_ITEM", "1.99");
      case "shipping-003":
        return createDisplayItem("Shipping", "LINE_ITEM", "1000");
      case "shipping-004":
        return createDisplayItem("Shipping", "LINE_ITEM", "2000");
      case "shipping_option_unselected":
        return new JSONObject();
      default:
        throw new JSONException("This shipping option is invalid for the given address");
    }
  }
}

    
```

### View model

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay.viewmodel;

import android.app.Application;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import com.google.android.gms.samples.pay.util.PaymentsUtil;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.wallet.IsReadyToPayRequest;
import com.google.android.gms.wallet.PaymentData;
import com.google.android.gms.wallet.PaymentDataRequest;
import com.google.android.gms.wallet.PaymentsClient;
import org.json.JSONException;
import org.json.JSONObject;

/** ViewModel for the {@link com.google.android.gms.samples.pay.activity.CheckoutActivity}. */
public class CheckoutViewModel extends AndroidViewModel {

  // A client for interacting with the Google Pay API.
  private final PaymentsClient paymentsClient;

  // LiveData with the result of whether the user can pay using Google Pay
  private final MutableLiveData<Boolean> canUseGooglePayInternal = new MutableLiveData<>();

  public final LiveData<Boolean> canUseGooglePay = canUseGooglePayInternal;

  /**
   * Initializes the ViewModel.
   *
   * @param application The application context.
   */
  public CheckoutViewModel(@NonNull Application application) {
    super(application);
    paymentsClient = PaymentsUtil.createPaymentsClient(application);

    fetchCanUseGooglePay();
  }

  /**
   * Determine the user's ability to pay with a payment method supported by your app and display a
   * Google Pay payment button.
   */
  private void fetchCanUseGooglePay() {
    try {
      final JSONObject isReadyToPayJson = PaymentsUtil.getIsReadyToPayRequest();
      if (isReadyToPayJson == null) {
        canUseGooglePayInternal.setValue(false);
        return;
      }

      // The call to isReadyToPay is asynchronous and returns a Task. We need to provide an
      // OnCompleteListener to be triggered when the result of the call is known.
      IsReadyToPayRequest request = IsReadyToPayRequest.fromJson(isReadyToPayJson.toString());
      Task<Boolean> task = paymentsClient.isReadyToPay(request);
      task.addOnCompleteListener(
          completedTask -> {
            if (completedTask.isSuccessful()) {
              canUseGooglePayInternal.setValue(completedTask.getResult());
            } else {
              Log.w("isReadyToPay failed", completedTask.getException());
              canUseGooglePayInternal.setValue(false);
            }
          });
    } catch (JSONException e) {
      Log.w("isReadyToPay failed", e);
      canUseGooglePayInternal.setValue(false);
    }
  }

  /**
   * Creates a Task that starts the payment process with the transaction details included.
   *
   * @param price the price to show on the payment sheet.
   * @return a Task with the payment information.
   * @throws JSONException If the JSON request is malformed.
   */
  public Task<PaymentData> getLoadPaymentDataTask(String price) throws JSONException {
    JSONObject paymentDataRequestJson = PaymentsUtil.getPaymentDataRequest(price);
    PaymentDataRequest request = PaymentDataRequest.fromJson(paymentDataRequestJson.toString());
    return paymentsClient.loadPaymentData(request);
  }
}

    
```

### Constants

```java
/*
 * Copyright 2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.samples.pay;

import com.google.android.gms.wallet.WalletConstants;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

/**
 * This file contains several constants you must edit before proceeding.
 * Please take a look at PaymentsUtil.java to see where the constants are used and to potentially
 * remove ones not relevant to your integration.
 *
 * <p>Required changes:
 * <ol>
 * <li> Update SUPPORTED_NETWORKS and SUPPORTED_METHODS if required (consult your processor if
 *      unsure)
 * <li> Update CURRENCY_CODE to the currency you use.
 * <li> Update SHIPPING_SUPPORTED_COUNTRIES to list the countries where you currently ship. If this
 *      is not applicable to your app, remove the relevant bits from PaymentsUtil.java.
 * <li> If you're integrating with your {@code PAYMENT_GATEWAY}, update
 *      PAYMENT_GATEWAY_TOKENIZATION_NAME and PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS per the
 *      instructions they provided. You don't need to update DIRECT_TOKENIZATION_PUBLIC_KEY.
 * <li> If you're using {@code DIRECT} integration, please edit protocol version and public key as
 *      per the instructions.
 */
public class Constants {

  /**
   * Changing this to ENVIRONMENT_PRODUCTION will make the API return chargeable card information.
   * Please refer to the documentation to read about the required steps needed to enable
   * ENVIRONMENT_PRODUCTION.
   *
   * @value #PAYMENTS_ENVIRONMENT
   */
  public static final int PAYMENTS_ENVIRONMENT = WalletConstants.ENVIRONMENT_TEST;

  /**
   * The allowed networks to be requested from the API. If the user has cards from networks not
   * specified here in their account, these will not be offered for them to choose in the popup.
   *
   * @value #SUPPORTED_NETWORKS
   */
  public static final List<String> SUPPORTED_NETWORKS = Arrays.asList(
      "AMEX",
      "DISCOVER",
      "JCB",
      "MASTERCARD",
      "VISA");

  /**
   * The Google Pay API may return cards on file on Google.com (PAN_ONLY) and/or a device token on
   * an Android device authenticated with a 3-D Secure cryptogram (CRYPTOGRAM_3DS).
   *
   * @value #SUPPORTED_METHODS
   */
  public static final List<String> SUPPORTED_METHODS = Arrays.asList(
      "PAN_ONLY",
      "CRYPTOGRAM_3DS");

  /**
   * Required by the API, but not visible to the user.
   *
   * @value #COUNTRY_CODE Your local country
   */
  public static final String COUNTRY_CODE = "US";

  /**
   * Required by the API, but not visible to the user.
   *
   * @value #CURRENCY_CODE Your local currency
   */
  public static final String CURRENCY_CODE = "USD";

  /**
   * Supported countries for shipping (use ISO 3166-1 alpha-2 country codes). Relevant only when
   * requesting a shipping address.
   *
   * @value #SHIPPING_SUPPORTED_COUNTRIES
   */
  public static final List<String> SHIPPING_SUPPORTED_COUNTRIES = Arrays.asList("US", "GB");

  /**
   * The name of your payment processor/gateway. Please refer to their documentation for more
   * information.
   *
   * @value #PAYMENT_GATEWAY_TOKENIZATION_NAME
   */
  public static final String PAYMENT_GATEWAY_TOKENIZATION_NAME = "example";

  /**
   * Custom parameters required by the processor/gateway.
   * In many cases, your processor / gateway will only require a gatewayMerchantId.
   * Please refer to your processor's documentation for more information. The number of parameters
   * required and their names vary depending on the processor.
   *
   * @value #PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS
   */
  public static final HashMap<String, String> PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS =
      new HashMap<String, String>() {{
        put("gateway", PAYMENT_GATEWAY_TOKENIZATION_NAME);
        put("gatewayMerchantId", "exampleGatewayMerchantId");
        // Your processor may require additional parameters.
      }};

  /**
   * Only used for {@code DIRECT} tokenization. Can be removed when using {@code PAYMENT_GATEWAY}
   * tokenization.
   *
   * @value #DIRECT_TOKENIZATION_PUBLIC_KEY
   */
  public static final String DIRECT_TOKENIZATION_PUBLIC_KEY = "REPLACE_ME";

  /**
   * Parameters required for {@code DIRECT} tokenization.
   * Only used for {@code DIRECT} tokenization. Can be removed when using {@code PAYMENT_GATEWAY}
   * tokenization.
   *
   * @value #DIRECT_TOKENIZATION_PARAMETERS
   */
  public static final HashMap<String, String> DIRECT_TOKENIZATION_PARAMETERS =
      new HashMap<String, String>() {{
        put("protocolVersion", "ECv2");
        put("publicKey", DIRECT_TOKENIZATION_PUBLIC_KEY);
      }};

  /**
   * A coefficient to calculate tax rates.
   *
   * @value #TAX_RATE The rate at which you want to calculate tax.
   */
  public static final Double TAX_RATE = 0.35;

  /**
   * The default price for the product.
   *
   * @value #BASE_PRICE
   */
  public static final String BASE_PRICE = "50.20";

  /**
   * The name of the merchant.
   *
   * @value #MERCHANT_NAME
   */
  public static final String MERCHANT_NAME = "Example Merchant";
}

    
```

> [!NOTE]
> **Objective:** Checkout the [Integration checklist](https://developers.google.com/pay/api/android/guides/test-and-deploy/integration-checklist.md.txt) to validate your integration and request production access.