braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

TypeError: undefined is not an object (evaluating 'braintree_web__WEBPACK_IMPORTED_MODULE_12__.ApplePaySession.canMakePayments') #701

Open kukadiyaAni opened 1 year ago

kukadiyaAni commented 1 year ago

I'm using node js with below detail

TypeError: undefined is not an object (evaluating 'braintree_web__WEBPACK_IMPORTED_MODULE_12__.ApplePaySession.canMakePayments')

I want to integrate Apple Pay but when try to click apple button pay button I got error TypeError: undefined is not an object (evaluating 'braintree_web__WEBPACK_IMPORTED_MODULE_12__.ApplePaySession.canMakePayments') my code is below

 if (!ApplePaySession.canMakePayments()) {
      console.error("This device is not capable of making Apple Pay payments");
 }
jplukarski commented 1 year ago

Hello @kukadiyaAni , thanks for writing in. Have you made sure you followed all steps outlined in our documentation for integrating with Apple Pay?

Can you provide steps to reproduce this issue? If you do not want to share details about your integration or your test site over public Github you can reach out to our support team who can help you troubleshoot your integration.

Thanks.