Closed KateStepanenkoBrickweb closed 3 years ago
It looks like the address you are entering in for requiredBillingContactFields
does not match the enums Apple pay specifies for version 2.
Additionally, you are checking if the browser supports version 3 of Apple Pay, but not specifying a version for applePay.applePaySessionVersion
in your dropin.create
call. Drop-in defaults to Apple Pay version 2, so we recommend specifying version 3 if you want to use any payment request properties that are only supported in version 3 or higher (such as phoneticName
in requiredBillingContactFields
).
General information
Issue description
I've followed the instructions, and can't get Apple Pay working in the production. I included an applePay property in Drop-in create call to render an Apple Pay option. It looks like this:
I have checked that ApplePaySession.canMakePayments() returns true. And I see the black Apple Pay button, but it doesn't work. When I tap on it, I just get a JS error: TypeError: Type error dropin.min.js:11738:208
https://js.braintreegateway.com/web/dropin/1.30.1/js/dropin.min.js
If it helps, I have created a test page on the website, and you can see this JS error here https://www.yourdesign.co.uk/braintree-index2
Is this a bug in the drop-in? Or if I do something wrong, I would appreciate it if you advise how to fix it?