#roshe10_webhooks

1 messages ยท Page 1 of 1 (latest)

mellow dewBOT
#

๐Ÿ‘‹ 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/1344326469156864012

๐Ÿ“ 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.

scarlet dustBOT
real tiger
#

Hi there ๐Ÿ‘‹ that Payment Intent hasn't succeeded yet because it hasn't been captured, it's currently in a requires_capture state.

bleak delta
#

hi, I'm testing it locally so what does it mean it requireds capture, and how is possible that charge.succeeded is called afterwards?
evt_3Qwm7FGSblWe99ue3qUWeQJI

real tiger
#

Charges succeed when the Payment Intent is confirmed, which you did here:
https://dashboard.stripe.com/test/logs/req_zbHRqsCTEkfjpv

But in your creation request for the intent you set capture_method to manual, so you need to also implement step 4 from our guide on how to accept payments.
https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=ios#capture-payment
(I wasn't sure if you're building your Tap to Pay flow in iOS, Android, or React Native, so I linked to our iOS guide and you may need to change the integration being used at the top of the doc page if you're using a different flow)

bleak delta
#

im using it in android, but thanks. what if i change my capture_method ? is that making any issues

subtle timber
#

You can use automatic capture if you like instead

bleak delta
#

i was not familiar with that capture method, is there any pros and cons doing one or another

subtle timber
#

You only really need to do manual if you want to place a hold and capture later

bleak delta
#

and what are the implications of using automatic_async compared to automatic.
TO give a bit more context, I need tap to pay for donation at the entrance of the non-profit organisation. so people would use their card to donate selected amount. I need to store them to db only if payment passed by succesfully.

subtle timber
#

Either way you should wait for payment_intent.succeeded webhook event

#

And use that to provision access

#

I think automatic is what you'd want for your scenario though