-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
iOS Currency error #1777
Comments
I found an issue where my amount is 500. When UGX and IDR are currency units, the SDK requires the incoming amount to be multiplied by 100, and after payment, the amount is indeed 500. But when the pop-up window is activated, the amount displayed on the iOS end is 50000, while on the Android end it is normal.
flutter_stripe: ^10.1.1 |
I don't have anywhere to manually modify this amount, and I shouldn't have done so. This is automatically obtained based on the paymentIntentClientSecret, which is normal for other currencies, except for UGX and IDR, which have issues displaying on iOS. What should I do? |
我发现一个问题,我的金额是500,在UGX和IDR为货币单位时,SDK要求传入的金额*100,然后在支付后,金额的确也是500的。但是在调起弹窗的时候,iOS端的金额显示为50000,Andriod端是正常的。
这是我的代码:
await Stripe.instance.initPaymentSheet( paymentSheetParameters: SetupPaymentSheetParameters( customFlow: false, merchantDisplayName: kStripeMerchantId, paymentIntentClientSecret: data['paymentIntent'], allowsDelayedPaymentMethods: true, applePay: const PaymentSheetApplePay( merchantCountryCode: 'UG', ), // googlePay: const PaymentSheetGooglePay( // merchantCountryCode: 'zh-CN', // testEnv: true, // ), style: ThemeMode.light, ), ); await Stripe.instance.presentPaymentSheet();
The text was updated successfully, but these errors were encountered: