DeligenceTechnologies / Braintree-Payment-Gateway-for-Flutter

Braintree Payment plugin for Flutter apps from Deligence Technologies. This plugin lets you integrate Braintree Drop In payment UI in just 4 easy steps.
BSD 3-Clause "New" or "Revised" License
34 stars 27 forks source link

PayPal requires a return URL scheme #19

Closed kobecarter closed 4 years ago

kobecarter commented 4 years ago

I have an issue with IOS, I registered the URL types and updated my AppDelegate but still getting the same error

[BraintreeSDK] CRITICAL PayPal requires a return URL scheme to be configured via [BTAppSwitch setReturnURLScheme:]. This custom URL scheme must also be registered with your app. Here is some screenshots Capture d'écran 2019-11-09 17 44 53 Capture d'écran 2019-11-09 17 46 57

jameshp commented 4 years ago

Hi, I'm not sure, but i think you need to call [BTAppSwitch setReturnURLScheme: @"uk.co.eliascleaners.london.app.paypal"]; in the application:didFinishLaunchingWithOptions: just after [GeneratedPluginRegistrant registerWithRegistry:self]; and before you return. Currently I think this is not even called as it looks to me.

Otherwise: Did you check everything described here https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4 ? e.g.

On Sat, 9 Nov 2019 at 18:06, kobecarter notifications@github.com wrote:

I have in issue with IOS, I registered the URL types and updated my AppDelegate but still getting the same error

[BraintreeSDK] CRITICAL PayPal requires a return URL scheme to be configured via [BTAppSwitch setReturnURLScheme:]. This custom URL scheme must also be registered with your app. Here is some screenshots [image: Capture d'écran 2019-11-09 17 44 53] https://user-images.githubusercontent.com/53197505/68532269-8e9ee600-031b-11ea-8ab2-f6e9792d3122.png [image: Capture d'écran 2019-11-09 17 46 57] https://user-images.githubusercontent.com/53197505/68532270-8e9ee600-031b-11ea-9a66-86d76cf8463f.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DeligenceTechnologies/Braintree-Payment-Gateway-for-Flutter/issues/19?email_source=notifications&email_token=AA5FTU6HQOYIAYPI72VI5M3QS3UZLA5CNFSM4JLIRQG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYF5D7Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5FTU4JTSVPSVVH42YLGJTQS3UZLANCNFSM4JLIRQGQ .