Disclosure: I work on Waffo Pancake, a merchant of record. This post is about the integration side, not a product pitch.
When a SaaS starts selling to customers in other countries, someone has to be the legal seller. With a payment processor such as...
Most billing bugs I have debugged were not in the payment provider. They were in how the app stored and calculated amounts. Three patterns come up again and again.
1. Floats for amounts
0.1 + 0.2 === 0.3 // false
A float cannot represent most dec...