Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

Always getting error 'The Braintree client failed to initialize.' on iOS #49

Open jassionly4u opened 6 years ago

jassionly4u commented 6 years ago

Hi,

I am using the plugin to setup Braintree but I am getting error on iOS platform whether its simulator or device. The error is - "The Braintree client failed to initialize"

Tried it on iOS 9.3, 10.2, 11.2.2 but everywhere its the same error.

The same code is working on Android.

Here is the code:

BRAINTREE_TOKEN is defined as a constant.

this.braintree.initialize(BRAINTREE_TOKEN).then(result => { console.log('result =>', result); alert('Ok') }).catch((error: string) => { console.log('initialize error=>', error) alert(error) })

Please check.