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 116 forks source link

[iOS] error when use Paypal Vault flow #92

Closed andrea689 closed 2 years ago

andrea689 commented 2 years ago

I tried to use PAYPAL VAULT FLOW on the example app, and I get this error: There was no amount provided in the request

Only on iOS when use BraintreePayPalRequest without amount

Unhandled Exception: PlatformException(braintree_error, There was no amount provided in the request, null, null)
#0      StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:607
#1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:156
<asynchronous suspension>
#2      Braintree.requestPaypalNonce
package:flutter_braintree/src/custom.dart:41
<asynchronous suspension>
#3      _MyAppState.build.<anonymous closure>
package:flutter_braintree_example/main.dart:96
<asynchronous suspension>