braintree / braintree-ios-drop-in

Braintree Drop-in for iOS
https://developers.braintreepayments.com
MIT License
98 stars 77 forks source link

PayPal Drop-In callback not called if PayPal not set up in-app but enabled in the web portal #33

Closed kierobinson1 closed 7 years ago

kierobinson1 commented 7 years ago

We have implemented the Braintree Drop-In into our app, and noticed that the BTDropInController's callback function isn't called when PayPal isn't set up in-app but is selected as the payment type. The callback could be necessary (and is for us) if we enabled PayPal on our portal for Web transactions but not for our mobile platform. In this case, we want the callback so we can show a pop up saying 'Coming soon'.

demerino commented 7 years ago

@kierobinson1 One solution is to not include the PayPal SDK if you haven't set it up yet. Would that be possible?

kierobinson1 commented 7 years ago

@demerino Is there any way to stop the PayPal SDK being installed through the normal Braintree and BraintreeDropIn pods?

demerino commented 7 years ago

Drop-in will require Braintree/Core, Braintree/Card and Braintree/UnionPay. Then just include the subspecs from Braintree that you need.

Example:

pod 'BraintreeDropIn'
pod 'Braintree/Apple-Pay'
pod 'Braintree/3D-Secure'
pod 'Braintree/DataCollector'
demerino commented 7 years ago

Closing, reopen if you need more help.