-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Fix IDR Formatting #3747
Comments
Hi @doganaltinbas, thank you for the report. Can you provide a PaymentIntent id with 186,332 IDR as the amount and currency? |
I believe you're actually providing an amount of 186,332,200 IDR on the PaymentIntent. If so, based on my research we should indeed show "IDR 186,332" in that case. |
Hi @yuki-stripe, |
## Summary Stripe Intents w/ IDR currency have amounts with 'decimals' e.g. 1 IDR is considered 1.00 IDR, which is represented as amount = 100. We should divide the amount by 100 before displaying e.g. Stripe amount=100 should display as 1 IDR ## Motivation #3747 https://jira.corp.stripe.com/browse/RUN_MOBILESDK-3360 ## Testing See unit test PaymentSheet w/ 1000 IDR Stripe amount: ![CleanShot 2024-07-08 at 11 38 49@2x](https://github.com/stripe/stripe-ios/assets/47796191/34ebff4b-4c8e-471d-8007-e93944d26efc) Apple Pay: ![CleanShot 2024-07-08 at 11 39 18@2x](https://github.com/stripe/stripe-ios/assets/47796191/fb2e6603-7e49-4e80-8b8f-97992a01385a) ## Changelog See CHANGELOG
@doganaltinbas This is fixed in 23.28.0! |
Thanks! @yuki-stripe |
Summary
When processing payments in Indonesian Rupiah (IDR), the SDK adds two extra zeros to the displayed amount. For example, an amount of 186,332 IDR is shown as 18,633,200 IDR at the checkout button as it can be seen below.
iOS version
iOS 17.5
Installation method
SPM
SDK version
23.27.5
The text was updated successfully, but these errors were encountered: