cordova-plugin-braintree icon indicating copy to clipboard operation
cordova-plugin-braintree copied to clipboard

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

Open jassionly4u opened this issue 8 years ago • 0 comments

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.

jassionly4u avatar Feb 14 '18 10:02 jassionly4u