flutter-braintree
flutter-braintree copied to clipboard
Unhandled Exception: PlatformException(braintree_error, Parsing error response failed, null, null)
//Code
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);