pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 119 forks source link

Properly pass Paypal options to iOS implementation #22

Closed philipgiuliani closed 4 years ago

philipgiuliani commented 4 years ago

This pull request fixes 3D Secure on iOS and initializes the PayPal options on iOS.

I downgraded the BraintreeDropIn Pod to be in line with the Android version. The new version requires an object for initializing threeDSecureRequest in both Android and iOS and that will have breaking changes for the Dart API.

The iOS app will maybe fail to build afater upgrading the dep because of the downgraded pods. In this case you have to run:

cd ios && pod update BraintreeDropIn Braintree/PayPal && cd -

Closes #20