PhoneGap-Braintree-iOS plugin

Hello All,
Could you please let me know if any one has implemented brain tree payment gateway implementaion

PhoneGap-Braintree-iOS plugin is available at below URL

with very less documentation.

Regards,
Suhas

2 Likes

Don’t use this plugin, it was old one, in fact there is no need to have plugin for this integration.

Please close this thread

Regards,
Suhas

Do you suggest anything else?

No need of anything else, if you are using any server side stuff, create a service and then call that service from ionic, please refer braintree documentation.

Regards,
Suhas

Not really true… The Braintree JS does not play well with Ionic / Cordova. The PayPal button will not work when build in iOs b/c of the https issue. I think we really need a working cordova plugin for braintree…

1 Like

Hi all, is there a solution for this issue? It seems like indeed there are issues with Braintree JS and Ionic.

In terms of Braintree JS Ionic issues, I found Braintree’s DropinUI will accept an initial card but does not work for return visitors trying to add a new payment method. The “Add New Payment Method” link is unresponsive. I see an Angular Braintree plugin at https://github.com/jeffcarp/braintree-angular. The other option might be a more native JS implementation without using their dropinUI. I’m curious if anyone else has successfully integrated Braintree and has any recommendations. Thanks

I kinda do. I did not use the Angular Library. I just use their JS SDK. For return customer, you will need to destroy the braintree instance before coming back to the view. They just added this function like 1 month ago (I believe passed alpha as well). So the Dropin UI and others can be used in SPA. (Before, you need to force refresh the page to use braintree).

I still having issue with PayPal. I will suggest everyone who use Ionic + Braintree to ask Braintree support to build support for Cordova app. They has pretty sweet support for native app with Apple Pay and Android Pay. They just need to fix some bugs and make PayPal and other gateways available to us hybrid users. Right now, they do not get enough interests (from their support response). But I believe if more hybrid developers ask them to finish support for Cordova, we can all benefit from it. I used Stripe before, personally think Braintree is way better (and cheaper), at least in US.

2 Likes

Thanks @Hughred22, great to know. Braintree support came back and suggested the Angular library for SPA, though glad to hear you got Dropin UI working with JS SDK. Cordova would be ideal, I’ll ask for that too.