Search code examples
androidgoogle-pay

Merchant ID versus Gateway Merchant ID


The merchantId property in the MerchantInfo request object's documentation is marked as required. The description for this property clarifies that it is only required "when PaymentsClient is initialised with an environment property of PRODUCTION."

Assume that:

  1. I initialise PaymentsClient with an environment property of PRODUCTION;
  2. The TokenizationSpecification object in my PaymentDataRequest has a type of "PAYMENT_GATEWAY"; and
  3. The TokenizationSpecification object in my PaymentDataRequest specifies "gateway" and "gatewayMerchantId" parameters.

Do I still need to specify a "merchantId" value in my PaymentDataRequest?


Solution

  • Yes you have to specify the merchantId. The merchantId is the one you can find in the Google Pay & Wallet console and is Google specific.

    enter image description here

    The gatewayMerchantId is something you receive from your Payment Service Provider.