Take and return issue_refund amounts in integer cents to match Stripe
main·
No checks reported
Commit
issue_refund's amount is now an integer number of US cents (schema type "integer", e.g. 6400 for $64.00), and the result returns "amount" in cents plus "currency": "usd" in place of the old "amount_usd" dollar float. Floats, strings and bools are rejected rather than guessed at, so a dollar value passed by mistake (64.0) errors instead of refunding 64 cents. The order-total check compares against the total converted to cents.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M4KJSW7ZK3SZMTNMAEXEB6EV