#himesh-paymentsheet

1 messages ยท Page 1 of 1 (latest)

dusty aurora
#

Hey, which card details do you want to fetch?

next pelican
#

Add a card detail from the UI which will be presented when we call presentPaymentSheet()

#

Screenshot_2022-09-07_at_5.01.22_PM.png

this card number and all so after that i can call the paymentintent api for finally charge the customer.

#

after entering card details and click on continue button then i get below object

#dev-help message

dusty aurora
#

Why do you need the card details though? Submitting on the Payment Sheet will confirm/complete the payment

next pelican
#

See i just did the submit only with the card details then it show incomplete payment in stripe dashboard

undone ruin
#

can you post the ID pi_xxx of the PaymentIntent?

next pelican
#

sure

#

pi_3LfMl1G0ZEyPysTX0pInbmut_secret_vvEhIOxNhSKiA1nijzTmtdK18

undone ruin
#

ok. so no logs on our side. What did the console.logs and Alert in the code snippet you posted print?

next pelican
undone ruin
#

I don't know what that is, looks like you tried to post an image on Discord and it didn't work

#

can you share the complete code?

next pelican
undone ruin
#

like what is that presentPaymentSheet function?

next pelican
#

i just filled out card details and then i clicked continue button

#

on click off Checkout button i call presentPaymentSheet() function which shows me Add a card UI.

undone ruin
#

when do you call confirmPayment?

next pelican
#

can you tell me when am i suppose to call that method please ?

undone ruin
#

well that's the problem then

next pelican
#

okay let me try and let you know.

#

just give me a min

undone ruin
#

presenting should work. So we're back to, what is the full code you have?

next pelican
#

let me show you

undone ruin
#

where is initializePaymentSheet called from?

next pelican
#

am not sure which stripe api i need to call to confirm the final payment when that add card UI is showed

undone ruin
#

that's why. Was there are a reason you're using that?

next pelican
#

is it coz of that customFlow props ?

undone ruin
#

if you remove it then this will work as expected

#

so either remove customFlow or, if you are using it, integrate it correctly using the guide above

next pelican
next pelican
undone ruin
#

make sure you saved the file and are running the latest version of the app

next pelican
undone ruin
#

and then, share the exact full code again, and the PaymentIntent ID pi_xxxx again, for the fresh attempt after triple-checking it on your side

next pelican
#

okay let me run it again and let you know

#

Amazing it worked ๐Ÿ™‚

#

Thank you so muchhhhh

#

๐Ÿ™‚

undone ruin
#

awesome!

next pelican
#

๐Ÿคฉ