#mahesh
1 messages ยท Page 1 of 1 (latest)
yes
I am done bacs debit direct functionality
I want to know the by using session id I am getting detail of session object
here my question by which id I can check payment is succeed or failed
Hello ๐
Stepping in for @sweet estuary here as they have to step away in a bit
You can expand payment_intent on the session object and check its status to see if the payment succeeded or not.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I doing bacs payment using subscription
Ah okay! That wasn't clear from your question earlier.
So you're using BACS DD with Subscription and want to know if customer made a recurring payment successfully or not, is that correct?
I am getting this detail
using session id
yes correct
@carmine ginkgo @sweet estuary are you there
yup still here
juggling between a few threads at the moment
okay I m waiting
In order to know if the payment was successful, you can use the webhooks and listen for checkout.session.async_payment_succeeded event for the first payment succeeding and after that invoice.paid for each recurring payment later
to get respective user payment subscription detail which Id I can use to get
by webhook I want know
to many subscription done in one day how I can identify respective user payment success or not
these events will have a session object associated with them
checkout.session.async_payment_succeeded will have a session object
https://stripe.com/docs/api/events/types#event_types-checkout.session.async_payment_succeeded
Hi
I have created a webhook for event checkout.session.async_payment_succeed and invoice.paid but when done payment by checkout I not able to get in webhook
hi @carmine ginkgo
can you give me your account ID that you're testing with? It should look something like acc_xxxxxx
where i will get that
you can go here https://dashboard.stripe.com/settings/account
It near the top right corner
acct_1JjhD3CkdzzFot39
thanks looking
okay
It looks like the events are being created for checkout.session.async_payment_succeeded
https://dashboard.stripe.com/test/events/evt_1Kbq2SCkdzzFot396ww0EbQJ
On my end it shows that these events were delivered to your CLI webhooks
So it is possible that your code isn't configured correctly to handle the events
There's example code here you can refer to
https://stripe.com/docs/webhooks#webhook-endpoint-code
if payment failed on which event I will get that
Give me moment to check this
You will get checkout.session.async_payment_failed event in case of payment failure
https://stripe.com/docs/api/events/types#event_types-checkout.session.async_payment_failed
okay thanks