WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Gateways › Stripe › Total price being passed to stripe is occasionally 0.01p too little
- AuthorPosts
- 9 October, 2018 at 7:49 pm #39549
Every now and then my online payments are going through but 1p too little. I have looked at 8 of them (the only ones that occurred) since may and can see no similarities between them. Whilst I’m not worried about the money it does present a bit of a headache when accounting.
I have checked in stripe under the POST /v1/charges and the amount is wrong. For example the following order was for £18.90 and in Stripe
“object”: “charge”,
“amount”: 1889,
“amount_refunded”: 0,
“application”: null,
“application_fee”: null,Any ideas??
🙂9 October, 2018 at 8:56 pm #39550sounds like a rounding issue somewhere perhaps ?! (just guessing though)
can you post the whole stripe POST /v1/charges output here (make it a private reply)
maybe we can see something there to start off withthing is, if 1889 does not match 1890 (presumably the actual order value) it should throw some errors somewhere before it even gets to stripe (i.e the 2 amounts must match EXACTLY)
that’s just off the top off my head at the moment (haven’t come across this before )
furthermore – are you willing and able to get out some info out of the wppizza orders table ? (not everybody knows how to access database table data so am asking first of all)
9 October, 2018 at 8:58 pm #39551one more thing :
where exactly do you see the 18.90 ?9 October, 2018 at 9:22 pm #39552This reply has been marked as private.9 October, 2018 at 9:56 pm #39553This reply has been marked as private.9 October, 2018 at 9:58 pm #39554This reply has been marked as private. - AuthorPosts
- The topic ‘Total price being passed to stripe is occasionally 0.01p too little’ is closed to new replies.