-
Notifications
You must be signed in to change notification settings - Fork 265
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
Google Pay amount displaying 0 in confirmPlatformPaySetupIntent #1436
Comments
hi @Filippo39 ! Could you provide some more info for me to reproduce Google Pay showing 0 for the price? On my device the price isn't showing (either for payment intents or setup intents) and in Google's docs, it states "This price is not displayed to the user." so they state you should show the price in your own UI. |
|
thanks! It was the |
Hi @Filippo39 👋 I’m from Stripe’s Android team. We reached out to our contacts at Google to understand whether we can just pass in a |
Hi @tillh-stripe, it would be nice to have the possibility to show a custom amount for android, in order to keep consistency with ios:
|
Makes sense. I’ll look into making that possible! |
@tillh-stripe passing in a Technically, there is a way to "hide" the |
Gotcha, thanks for confirming, @dmengelt. @Filippo39 I’ll look into adding support for a custom amount on Android. |
We just merged the necessary change on Android: stripe/stripe-android#7191 Once @charliecruzan-stripe adds the necessary React Native support, you’ll be able to provide a custom amount (and a custom label!) for setup intents. |
Unfortunately, despite this change, I continue to see €0, perhaps there is a block on the part of Google Pay
|
hi @Filippo39 , this is working for me on the most recent version, using the same code you shared above- Are you sure you're on the most recent version? |
Yes it works, I had to clear the node modules after updating the library, thanks |
@charliecruzan-stripe |
Different behaviors of Apple Pay/Google Pay. I'll reflect that in the docs.
Fixed this, sorry about that! |
what is the docs of Different behaviors of Apple Pay/Google Pay.? |
In my application, setupIntent is used for payment management, where in some cases the price is known and in others it is not. In Android, the confirmPlatformPaySetupIntent function does not allow setting the displayed amount (it always shows €0.00) nor a label to provide more details to the user.
After doing some research, I noticed that a similar issue has already been resolved for Flutter.
flutter-stripe/flutter_stripe#1250
I was wondering if it would be possible to get the same modification for React Native.
The text was updated successfully, but these errors were encountered: