Skip to content

fix(stripe): floor crypto PaymentIntent amounts - #252

Open
decofe wants to merge 2 commits into
mainfrom
centaur/floor-crypto-payment-intents-1789747200
Open

decofe wants to merge 2 commits into
mainfrom
centaur/floor-crypto-payment-intents-1789747200

Conversation

@decofe

@decofe decofe commented Sep 18, 2026

Copy link
Copy Markdown
Member

Floor recorded Stripe crypto PaymentIntent amounts to whole cents, matching mppx #899. For example, 15,000 raw units now records 1 cent instead of 2, so the PaymentIntent does not exceed the settled on-chain amount. Amounts below one cent continue to be skipped.

Uses integer division and adds boundary/large-integer coverage for Tempo, Base, and Solana, plus a release note.

Validation: 54 recorder, payment-options, and Stripe machine-payments tests passed; Ruff lint and format checks passed. Tests use a fake Stripe client and make no live payments.

Prompted by: @brendanjryan

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants