#ali-osaid_api

1 messages ยท Page 1 of 1 (latest)

bright pondBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1278310686044192779

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

void furnace
delicate hull
#

after using stripe sdk method confirmPaymentIntent the intent already been confirm so i cant be confirm again
Seems expoected assuming the confirmation attempt succeeds โ€“ intent will transition to a terminal state

What specifically are you trying to do? An example API request would be useful

void furnace
#

the problem is the status is still succussed even after using card that process failed

delicate hull
#

Looks like you want to do server-side confirmation after the user selects their Google Pay card and you call confirmPaymentIntent?

void furnace
#

yesss

delicate hull
delicate hull
void furnace
#

while creating the payment intent ? right

#

okay thanks i hope this works

#

pi_3PsjddAS0IcxtTCe0alqGT0J

#

btw this is the id can you check

delicate hull
#

What am I checking?

void furnace
#

we used google test card that said proccessing failed but when we checked it still said status success

delicate hull
#

Yeah you can't use Google test cards

#

You need to test with real cards in your Google Pay wallet, and we'll substitute them at the time of payment for a test token

void furnace
#

but when we were using stripe card it said you cant attach this payment method try different payment methods

delicate hull
void furnace
delicate hull
#

As I said, a real card needs to be added. Not our test cards

void furnace
#

even in test env ?

delicate hull
#

Yes, and we'll automatically switch to a test token when using your test key

void furnace
#

okayyy got it thanks

delicate hull
void furnace
#

getting this error from FE react native

delicate hull
#

Yeah I mean overall confirmation_method param is probably redundant is the issue was you just using the wrong test cards in Google Pay. Remove it

void furnace
#

same issue

#

even after using real card

#

got the above error

meager aurora
#

hi! I'm taking over this thread.

#

can you share the new PaymentIntent ID with this issue?

void furnace
#

sure

#

pi_3PskmIAS0IcxtTCe3slwuypn

meager aurora
#

I think the error is pretty clear:

This PaymentIntent pi_3PskmIAS0IcxtTCe3slwuypn cannot be confirmed using your publishable key because its confirmation_method is set to manual. Please use your secret key instead, or create a PaymentIntent with confirmation_method set to automatic

void furnace
#

but thats the problem im using secret key to confirm the payment and on react native we are using stripe sdk for google pay

#

this is frontend code

meager aurora
#

so you have two options:

  • Change how you create the PaymentIntent to use confirmation_method:automatic
  • Or confirm the PaymentIntent from the backend
void furnace
#

i already have an api to confirm payment but it gets error before that while using confirmPlatformPayment

meager aurora
void furnace
#

can you suggest other method of stripe sdk to make google pay but not confirm it because we have to confirm on backend

subtle pagoda
#

you can use createPlatformPayPaymentMethod instead of confirmPlatformPayPayment , and then send the resulting PaymentMethod to the backend and confirm the PaymentIntent with it.

void furnace
#

thanks will try it out