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:
type
of "PAYMENT_GATEWAY"
; and"gateway"
and "gatewayMerchantId"
parameters.Do I still need to specify a "merchantId"
value in my PaymentDataRequest?
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.
The gatewayMerchantId
is something you receive from your Payment Service Provider.