flutter-braintree icon indicating copy to clipboard operation
flutter-braintree copied to clipboard

Unhandled Exception: PlatformException(braintree_error, Parsing error response failed, null, null)

Open BLACKCAT25896 opened this issue 1 year ago • 4 comments

//Code Screenshot 2024-05-08 201102

final request = BraintreePayPalRequest( billingAgreementDescription: 'I hereby agree that I give permission to HandyX to save and charge from this card in future for further transactions.', amount: "10", );

final dropInRequest = BraintreeDropInRequest(
  // clientToken: paymentBloc.clientToken,
  collectDeviceData: true,
  cardEnabled: true,
  amount: "10",
  requestThreeDSecureVerification: true,
  tokenizationKey: paymentBloc.clientToken,
  paypalRequest: request,
    email: "[email protected]",
    billingAddress: BraintreeBillingAddress(
      givenName: "Jill",
      surname: "Doe",
      phoneNumber: "5551234567",
      streetAddress: "555 Smith St",
      extendedAddress: "#2",
      locality: "Chicago",
      region: "IL",
      postalCode: "12345",
      countryCodeAlpha2: "US",
    ),
  googlePaymentRequest: BraintreeGooglePaymentRequest(
    currencyCode: "USD",
    totalPrice: "0.1",
    billingAddressRequired: false,
  ),
  applePayRequest: BraintreeApplePayRequest(
    displayName: "Payment",
    // amount: 0,

    countryCode: "US",
    currencyCode: "USD",
    paymentSummaryItems: [],
    merchantIdentifier: 'merchant.tech.dingi',
    supportedNetworks: [
      ApplePaySupportedNetworks.visa,
      ApplePaySupportedNetworks.masterCard,
    ],
  ),
);
BraintreeDropInResult? result = await BraintreeDropIn.start(dropInRequest);

BLACKCAT25896 avatar May 08 '24 14:05 BLACKCAT25896

android

On Mon, 13 May 2024, 6:07 pm Muhammad Bani Akram, @.***> wrote:

Android or IOS?

— Reply to this email directly, view it on GitHub https://github.com/pikaju/flutter-braintree/issues/160#issuecomment-2107401394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENNNOJP2K7JENW7C525GYTZCCUH7AVCNFSM6AAAAABHNB46Q6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGQYDCMZZGQ . You are receiving this because you authored the thread.Message ID: @.***>

BLACKCAT25896 avatar May 13 '24 13:05 BLACKCAT25896

Run the app by flutter run --verbose and keep an eye on the log. Try and change/comment the values 1 by 1 and see where it goes wrong. I think one of the values is wrong because it's throwing parse error.

BunnyBuddy avatar May 14 '24 05:05 BunnyBuddy

Hello everyone,

I have also encountered this error on iOS and Android. The problem occurs when changing the PayPal account linked to Braintree. Some accounts work fine, while others run into this error.

Could someone please help us?

rakotoleonce2106 avatar Jul 11 '24 07:07 rakotoleonce2106

Having same issue after linking with Braintree account.

krishnalalstha avatar Sep 17 '24 12:09 krishnalalstha