capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

Googlepay pop-up issue #173

Closed curiousShreya closed 1 year ago

curiousShreya commented 2 years ago

Describe the bug I have followed this repo to integrate googlepay to my mobile application using ionic. The final googlepay pop-up window is taking my already saved email id, the saved mastercard but after that there is no amount to pay or pay button is displaying instead "Continue" button is displaying and when I clicked on that button my application is crashing so can you please suggest some methods and options to rectify this issue.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior In the screenshots sections, I shared the link of your googlepay screenshot and in this screenshot, you can see the payment amount and the "Pay" button. My application is displaying the mail-ID and the card details but not getting this payment amount and the "Pay" amount instead I am just getting a "Continue" button and on clicking this button my application is crashing so how can I rectify this issue.

Screenshots https://github.com/capacitor-community/stripe/blob/master/demo/screenshots/google-pay-android.png

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

rdlabo commented 2 years ago

@curiousShreya Did you set paymentSummaryItems?? demo: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab1/tab1.page.ts#L230-L233

And make sure the last line contains the total amount. This is the same specification as Apple Pay. https://github.com/capacitor-community/stripe/blob/master/src/web.ts#L299

rdlabo commented 2 years ago

And please try v3.7.0. Thanks.

curiousShreya commented 2 years ago

Okay. Also, there is a thing that i have used ionic React in googlepay integration and the doc you have shown me uses Angular so does it make any difference? Also, I haven't used "paymentSummaryItems" because in the React doc it was not given.

rdlabo commented 1 year ago

Has this problem been resolved? No action taken, so this Issue is closed. If you continue to have problems, please create a new Issue.