Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe payment flow #161

Open
Alienjob opened this issue May 15, 2024 · 1 comment
Open

Describe payment flow #161

Alienjob opened this issue May 15, 2024 · 1 comment

Comments

@Alienjob
Copy link

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,
)
@BunnyBuddy
Copy link

Read the documentation on Braintree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants