#xiaxiao-googlepay

1 messages · Page 1 of 1 (latest)

stark stag
#

hi there! are you using Checkout or Elements to collect payment?

cursive dune
#

Elements

stark stag
#

the Payment Element?

cursive dune
#

This is my test order, but it keeps failing when repaying. I don't know why, I would like to see a successful order

stark stag
#

can you share the PaymentIntent id?

cursive dune
#

This is the problem I'm having with the payment.PaymentIntent id please wait

#

This is the ID seen on the stripe: pi_3L148wHcQvyD0l9d1gridWf0

This is what the PHP code gets when it creates the object: pi_3L148wHcQvyD0l9d1gridWf0_secret_7LSz6DBAOzhh24WWKKTMMUfsI

#

The card number I use: 4242 4242 4242 4242

#

Is it because of google restrictions?

stark stag
#

would you happen to have a test site which we can access?

cursive dune
stark stag
#

please don't share your secret key

cursive dune
#

I'm not very good at English, I hope I don't misunderstand what you mean

stark stag
#

there was the test API secret key in the code you shared

cursive dune
#

Sorry~ I didn't notice. This is my test account, hope it won't cause you trouble

stark stag
#

give me a while to look into this, will get back to you shortly

cursive dune
#

Thank you very much for your help, I will be patient

stark stag
#

you need to add a real card

#

a test card will fail payment

#

when you use a real card, we will not charge the card in test mode

cursive dune
#

Okay thank you

#

I used my card number to pay, but it didn't work

#

😩

stark stag
#

it's a different error message now though

#

onesec, trying it too

#

where did you define the addMessage function/method?

#

it's not defined as far as i can tell