Replies: 1 comment 2 replies
-
Hi, the server code is just for testing and is not a full fletched API. We use this purely for debugging on our side. It is a copy of the stripe example backend. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. Need your help regarding this issue. This is first time i am using this package. Thank you.
Describe the bug
Amount on payment page not as set in json code flutter. Dont know how to set the amount to be same as json in flutter code. in Flutter code, the amount i set is MYR 50.00 not MYR 3.50
To Reproduce
Steps to reproduce the behavior:
Flutter Code:
final url = Uri.parse('$kApiUrl/create-payment-intent'); final response = await http.post( url, headers: { 'Content-Type': 'application/json', }, body: json.encode({ 'currency': 'myr', 'payment_method_types': ['fpx'], "amount": 5000, }), );
Server code:
Expected behavior
Amount on server code should be same as the amount from Flutter code.
Smartphone
Beta Was this translation helpful? Give feedback.
All reactions