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

I got the exception when I pressed the Paypal on IOS #26

Closed chicrock closed 1 year ago

chicrock commented 4 years ago

Hi ~ I got the exception below.

image

It happened when I pressed the Paypal button In DropIn request.

Here is my code.

var request = BraintreeDropInRequest(
  tokenizationKey: 'my token',
  collectDeviceData: false,
  paypalRequest: BraintreePayPalRequest(
    amount: '3.0',
    currencyCode: 'USD',
    displayName: 'Display',
  ),
);

BraintreeDropInResult result = BraintreeDropIn.start(request);

Are any other setups for Paypal in ios ? Or, how can I set up the One Touch for callback URL ?

luakt1955 commented 4 years ago

I have same problem. Hope to have a solution soon. Many thanks.

I shall add that I have no problem running your example program. The PayPal button runs correctly. It only shows the above error message when I copy the codes (main.dart) to run. I have set up App Delegate and URL Types in Info.plist according to instructions. I just do not know where I am missing that your example runs smoothly but my copied codes gives me the above errors.

Please help. Grateful.

DriftingShadows commented 4 years ago

I get exactly the same thing. Were there updates on this @Pikaju by any chance?

EDIT: I fixed this by making sure the url was exactly the same as the one specified in info.plist . In my case, i had some capitalisations that i didnt put in the appdelegate

pikaju commented 1 year ago

This issue is very old, please reopen if it still persists in the latest version.