Accepting Google Pay with Minu Pay

Google Pay™ lets your customers pay with the cards saved in their Google Wallet on Android devices. Minu Pay (360 Finance NBFI, Mongolia) is the payment processor: we show the Google Pay button on our hosted checkout page, decrypt the payment data and authorize the payment. Mongolian-language integration guide: docs.html.

1. How it works — hosted checkout

Minu Pay integrates Google Pay through its hosted checkout at https://pay.minu.mn. You do not call the Google Pay API, load the Google Pay JavaScript library or handle Google Pay payment data yourself:

  1. Your server creates an invoice with POST /invoice (see docs.html) and redirects the customer to the returned checkout link.
  2. On the checkout page we load the Google Pay API JavaScript library, call isReadyToPay and show the Google Pay button only when the customer can pay with it.
  3. The customer selects a card in the Google Pay payment sheet. Our page sends the encrypted payment data straight to our servers; we decrypt it and authorize the payment with the card network.
  4. You receive the result exactly as for any other payment method: the webhook, /checkTxn and the return to your redirectUrl (see docs.html).

Google Pay is not offered on our checkout when it is opened inside an in-app WebView, because the Google Pay web API is not available there. Minu Pay does not provide an Android SDK; Android apps should open the checkout link in the browser.

2. Enabling Google Pay

  1. Ask your Minu Pay account manager to add GOOGLEPAY to the payment methods of your merchant account. Accounts created through our onboarding API can list it in paymentMethods.
  2. Accept Google's terms (next section).

No code change, Content-Security-Policy update or Google Pay & Wallet Console registration is required on your side: the Google Pay button runs on pay.minu.mn, and the Google merchantId on the payment request is Minu Pay's.

3. Google policies

By accepting Google Pay through Minu Pay's hosted checkout, you must adhere to the Google Pay and Wallet API's Acceptable Use Policy and accept the terms defined in the Google Pay API Terms of Service.

4. Authorization methods and 3-D Secure

Google Pay returns card credentials in one of two authorization methods:

MethodWhat it isMinu Pay
CRYPTOGRAM_3DSA tokenized virtual card stored on the Android device, with a cryptogram Supported. No 3-D Secure challenge is needed: the customer is authenticated on the device.
PAN_ONLYA card stored in the customer's Google account, returned as the card number Not supported. We do not request it, and we decline PAN_ONLY payment data.

Because PAN_ONLY is not offered, there is no 3-D Secure step for Google Pay. Customers whose card is not tokenized on their device can pay with the card form on the same checkout page, which uses 3-D Secure.

5. Card networks and country

ParameterValue
allowedCardNetworksVISA, MASTERCARD
countryCode (country of settlement)MN — Mongolia
currencyCodeMNT. USD invoices are converted to MNT before payment (see docs.html).

Your merchant account must be a Minu Pay merchant settled in Mongolia.

6. gateway and gatewayMerchantId

Our checkout requests Google Pay payment data with the PAYMENT_GATEWAY tokenization type:

ParameterValue
gatewayminupay — the gateway ID registered by Minu Pay with Google
gatewayMerchantIdYour Minu Pay merchantCode (the user name you sign in to our API with, for example MYSHOP). We reject payment data whose gatewayMerchantId does not match the invoice's merchant.

The checkout sets these values for you. The resulting configuration is:

"allowedPaymentMethods": [
  {
    "type": "CARD",
    "parameters": {
      "allowedAuthMethods": ["CRYPTOGRAM_3DS"],
      "allowedCardNetworks": ["VISA", "MASTERCARD"]
    },
    "tokenizationSpecification": {
      "type": "PAYMENT_GATEWAY",
      "parameters": {
        "gateway": "minupay",
        "gatewayMerchantId": "MYSHOP"
      }
    }
  }
]

7. Billing address

A billing address is not required. We do not set billingAddressRequired, and we do not perform address verification for Google Pay payments.

8. Payment data

You never receive or send Google Pay payment data. When the customer confirms in the Google Pay sheet, our checkout page reads paymentMethodData.tokenizationData.token from the PaymentData response and submits it, together with the invoice, to the Minu Pay server over HTTPS. Minu Pay decrypts it with its gateway:minupay private key, verifies Google's signature, the expiry and the gatewayMerchantId, and authorizes the payment. Each payment data message is accepted only once.

The outcome reaches you through the webhook and /checkTxn; the webhook type is CARD for Google Pay as for card payments.

9. Branding

Our checkout displays the official Google Pay button rendered by the Google Pay API JavaScript library, unmodified. If you mention Google Pay on your own site or app, for example in a list of accepted payment methods, use only the approved Google Pay assets, without changing their colors, proportions or appearance, as described in the Google Pay web brand guidelines and the Google Pay Android brand guidelines.

Google Pay is a trademark of Google LLC.