Topup invoices ability to round within a tollerance #5761
ashleymcdonald
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Relies on #5759.
This suggestion is for shops that accept payments via top-up invoices for account credit or the purchase of credits.
For better UX and to keep the payments logic in one place, it would be good to have top-up invoices that have the ability to round within a tolerance to a set multiple.
This is important for shops where the top-ups are used for items of round values (ie. $5 = 1 credit.)
And no one likes sending 200 to get 199.23 😛
Some examples for a requested amount of 100;
Tolerance: 0, Multiple: 5 (normal rounding to nearest 5)
199.23 => 200
192.12 => 190
Tolerance: 5, Multiple: 5 (normal rounding to nearest 5 with positive tolerance of 5%)
100 => 100 (the exact amount was sent, no tolerance applied)
196.12 => 200 (196.12 + 5 = 201.12)
Edit: tolerance is calculated based on the requested amount, not the amount sent;
Open to discussion if the value should be based on the received or requested amount.
Beta Was this translation helpful? Give feedback.
All reactions