Skip to content

allow providing payment request value as a string#32

Merged
domleboss97 merged 1 commit intomainfrom
dominic/allow-string-for-payment-option
Aug 28, 2025
Merged

allow providing payment request value as a string#32
domleboss97 merged 1 commit intomainfrom
dominic/allow-string-for-payment-option

Conversation

@domleboss97
Copy link
Collaborator

In practice, when specifying monetary values as minor units, it is safer to represent amounts as strings to not lose precision. This updates the paymentRequest.paymentOption.amount type to be string | number. Users of the sdk can still specify the value as a number if they prefer.

@domleboss97 domleboss97 merged commit 99a0eda into main Aug 28, 2025
2 checks passed
@domleboss97 domleboss97 deleted the dominic/allow-string-for-payment-option branch August 28, 2025 12:53
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