Solved

How can I get the transaction or order ID in Flutter?

  • 18 October 2021
  • 3 replies
  • 48 views

Badge +2

How can ı. get order id in flutter for android 

icon

Best answer by cody 18 October 2021, 19:42

View original

3 replies

Userlevel 3
Badge +7

Hey @seyhmus gumus!

We don’t currently send the transaction or order ID in the purchase response from the Flutter SDK.

If you need access to the transaction ID, I’d recommend setting up webhooks as we include transaction identifiers in webhooks for purchases. You can consume webhooks from your server and save the transaction identifier server-side.

Badge +2

Thank you so much for letting me know this

Hey @seyhmus gumus!

We don’t currently send the transaction or order ID in the purchase response from the Flutter SDK.

If you need access to the transaction ID, I’d recommend setting up webhooks as we include transaction identifiers in webhooks for purchases. You can consume webhooks from your server and save the transaction identifier server-side.


Please add the order ID to the response, setting up webhook to save server side and then reading from there complicates what should be a pretty simple transaction. (Make an order -> get your order id in the success response)

Reply