Onboarding

Before you start the integration, you exchange a few parameters with Mercuryo: Mercuryo provides its Google Pay credentials and API keys, and you provide the details of your app or site so that it can be registered with Google.

What Mercuryo Provides

Dashboard access

You need access to the Mercuryo Dashboard — contact your integration manager if you don't have credentials yet.

Mercuryo API credentials

Parameter Description
widget_id Your Widget ID, available in the Mercuryo Dashboard under Widgets → select your widget. Used in the Mercuryo widget URL for the KYC handover.
Sdk-Partner-Token Your partner authentication token for the quote, the payment request and the user sign-in. Request it from your integration manager.
Sign Key The key used to sign payment requests (X-Signature) and to verify callbacks — see Signature. Available in the Mercuryo Dashboard under Widgets → select your widget. Keep it confidential.

Google Pay parameters

With DIRECT tokenization, Google encrypts the payment token with Mercuryo's public key under Mercuryo's Google merchant account. You use these parameters in your Google Pay request as provided — see Native Payment.

Parameter Where it goes in the Google Pay request Description
Merchant ID merchantInfo.merchantId in loadPaymentData Mercuryo's Google Pay merchant identifier.
Merchant name merchantInfo.merchantName in loadPaymentData The merchant name shown to the user on the Google Pay payment sheet.
Country code transactionInfo.countryCode in loadPaymentData The country code to use in the transaction info.
Public key tokenizationSpecification.parameters.publicKey in loadPaymentData Mercuryo's encryption public key for ECv2 tokens.

Important: Don't hardcode the public key in your app. Keep it in your backend configuration and pass it to the app, so that you can replace it without releasing a new version.

What You Provide

App or site registration in Google Pay

Mercuryo registers your integration in its Google Pay & Wallet Console. Until this is done, Google shows an error in the PRODUCTION environment (for example, "Unrecognized app"). Provide your integration manager with:

  • Android app: the package name of your app and screenshots of the checkout flow with the Google Pay button.
  • Website: the domain where the Google Pay button is shown and screenshots of the checkout flow with the Google Pay button.

Your integration must follow the Google Pay API Acceptable Use Policy and the Google Pay brand guidelines.

Callback URL

Set the URL where Mercuryo sends transaction status updates in the Callback URL field of your widget settings in the Mercuryo Dashboard. See Callbacks & Webhooks.

Environments

Service Production Sandbox
Dashboard https://dashboard.mercuryo.io https://sandbox-dashboard.mrcr.io
API https://api.mercuryo.io/v1.6 https://sandbox-api.mrcr.io/v1.6
Widget (KYC handover) https://exchange.mercuryo.io https://sandbox-exchange.mrcr.io