Closed jonatasoli closed 2 years ago
Thanks for issue. Android Emulator can't use GooglePay. Please run on real device: https://github.com/tipsi/tipsi-stripe/issues/356#issuecomment-417942799
I'm having a similar problem on iOS...
I'm able to create the payment sheet, but then when I hit presentPaymentSheet() I get the following error:
TO JS {"error":"There was an unexpected error -- try again in a few seconds"} ⚡️ TO JS {"paymentResult":"paymentSheetFailed"}
It works perfectly on web browser on dev machine.
@travisBradfield This may be API issue: https://github.com/stripe/stripe-ios/issues/1832
Please check api implement.
Hey @rdlabo,
I've followed this thread and it seems we're doing all of the things they're suggesting. Which docs should I be referring to to check my API implementation?
So! I had the API implementation wrong. We were returning the ephemeralKayID and not the ephemeralKeySecret!
Easy mistake but working now. Next step: Apple & Google Pay!
Thanks for issue. Android Emulator can't use GooglePay. Please run on real device: tipsi/tipsi-stripe#356 (comment)
Hello, I try run in my phone but I have the same problem with the same error.
@travisBradfield @jonatasoli Did https://github.com/capacitor-community/stripe/issues/90#issuecomment-913278953 or demo code help you?
Or please share the repository where you reproduced the error.
Thanks.
@travisBradfield @jonatasoli Did #90 (comment) or demo code help you?
Or please share the repository where you reproduced the error.
Thanks.
https://github.com/jonatasoli/test-stripe
server:
pip install poetry
poetry install
poetry shell
make run
@jonatasoli https://github.com/jonatasoli/test-stripe/blob/main/src/components/payment/Payment.vue#L59 is correct?? Not require JSON.stringify data. Please check demo code: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab1/tab1.page.ts#L208
@jonatasoli https://github.com/jonatasoli/test-stripe/blob/main/src/components/payment/Payment.vue#L59 is correct?? Not require JSON.stringify data. Please check demo code: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab1/tab1.page.ts#L208
@rdlabo when I use in PaymentSheet is code found.
@jonatasoli Sorry, I misunderstood this problem as about Google Pay. I see, first you should check to be able to use this test environment:
publishableKey: 'pk_test_YssveZBA1kucfaTfZbeDwauN'
endpoint: https://j3x0ln9gj7.execute-api.ap-northeast-1.amazonaws.com/dev/payment-sheet
If be fixed, your issue is api implements. If not, issue is app implements. Thanks.
Has this problem been resolved? No action taken, so this Issue is closed. If you continue to have problems, please create a new Issue.
Describe the bug I'm working capacitor with vuejs. When I try doing payment with google pay I have error in present step, but the intent is sended to stripe.
To Reproduce Steps to reproduce the behavior: My code:
See error in line
const result = await Stripe.presentGooglePay();
My capacitor config -> capacitor.config.ts