-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
"Paid by customer" shows wrong value in order detail #142
Comments
@treoden Can you tell me where it shows wrong |
It shows wrong in order summary (grand total) from admin when user paid using Stripe |
Weired paidAmount = transaction.amount.text displays 100 x correct amount |
Hi treoden, do you have access to the postgres database on the demo site? I was wondering if the payment_transaction has the correct data for order # 13353 and #13354? Maybe it is not a display problem. When I look through the orders, some got correct display, some not, but they all use stripe payment. |
It is due to the way Stripe handles the money amount. It does not use decimal, instead it use integer. We need to devide the value by 100 before saving the transaction amount to our db |
I noticed that, how do you explain that #13350 has the correct number on the demo site? |
I noticed Stripe has 3 category and 1 special. |
I think I am not going to take into account of 3 decimal currency, I will assume it is a zero decimal for simplicity and just do a division by 100 as a fix, do you agree? |
what's your policy about testing, do you need to write a test script or you can pass if a very small changes? |
No description provided.
The text was updated successfully, but these errors were encountered: