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 9 months ago • 3 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