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

Describe payment flow

Open Alienjob opened this issue 1 year ago • 1 comments

If the payment is successful, I need to send the transaction ID to the backend. Can you describe in more detail what I should do with BraintreePaymentMethodNonce to make the transaction?

This code done its work, i have Nonce object.

final request = BraintreeCreditCardRequest(
    cardNumber: '4111111111111111',
    expirationMonth: '12',
    expirationYear: '2021',
    cvv: '123',
  );
  final myNonce = await Braintree.tokenizeCreditCard(
    tokenizationKey,
    request,
  );

But what i should do to use this Nonce? I expected method like

final transactionData = await Braintree.createTransaction(
  nonce: myNonce,
  orderId: '123'
  amount: 100,
)

Alienjob avatar May 15 '24 15:05 Alienjob

Read the documentation on Braintree

BunnyBuddy avatar May 18 '24 08:05 BunnyBuddy