Update: I read through the Google Pay docs at https://developers.google.com/pay/ap...esources/demos and the Paypal/Braintree ones at https://developer.paypal.com/braintr...javascript/v3/, and have found if I go to pay.google.com and at the top right get the Merchant ID, a 16 character alpha-numerical string like ABCD1234DEFG4567 and edit braintree_api to pass that in the call to the google pay API, i.e.:
Code:
braintree.googlePayment.create({
client: clientInstance,
googlePayVersion: 2,
googleMerchantId: 'ABCD1234DEFG4567' // EDIT, was: " . MODULE_PAYMENT_BRAINTREE_MERCHANTID . "
}, function (googlePaymentErr, googlePaymentInstance) {
Then the google pay form does appear correctly, at least on my dev machine. I'm having trouble getting it to work on live, but it seems to show that the payment module is incorrect in trying to pass the Braintree Merchant ID value from the Zen admin panel. I don't know if using the Braintree ID is supposed to be a substitute for the Google Pay one and i'd been getting something else wrong in the config, the documentation is all rather confusing. I'll keep poking it tomorrow.
Bookmarks