#User1 - payment intents

1 messages · Page 1 of 1 (latest)

brave sparrow
#

Hi 👋
What are you trying to accomplish?

rich birch
#

1)when we trying to get the payment_intent status which one is recommended
2) all type of payment_intent status can we use single webhook endpoint

brave sparrow
#

Well the webhooks fire as the result of an event. So a change in payment intent

#

They are specific to those changes

#

If you just want to know all statuses of all payment intents you could listen to all events and just save the payment_intent object provided.

#

The webhook endpoint can be the same and just listen for all Payment Intent events

rich birch
#

and when i am using stripe js can i use retrieve_payment_intent method to get the status or can we use webhooks which one is best and recommended?

brave sparrow
#

You can retrieve a payment intent on your server as well. what are you trying to accomplish here?

#

Like, overall what is the user experience you want to offer and how is your application designed?

rich birch
#

actaully my application is like online order application. so i need whenever the payment succeeded then only i am completes the order