# Stripe Paiement

**URL:** <https://community.weweb.io/t/stripe-paiement/5374>\
**Category:** Ask us anything\
**Created:** [November 13, 2023, 4:06pm UTC](https://community.weweb.io/t/stripe-paiement/5374 "2023-11-13T16:06:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JacquesL](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JacquesL](https://community.weweb.io/u/JacquesL)\
**Post date:** [November 13, 2023, 4:06pm UTC](https://community.weweb.io/t/stripe-paiement/5374/1 "2023-11-13T16:06:29Z")

</div>

Hey,

I’d like to create a booking via a POST endpoint in Xano when a stripe Paiement is completed. However, because I use the stripe integration, I am redirected to another page whenever the paiement succeed and I can’t send any informations to Xano. Any tips ?

Jacques

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 13, 2023, 4:13pm UTC](https://community.weweb.io/t/stripe-paiement/5374/2 "2023-11-13T16:13:52Z")

</div>

> **[Use incoming webhooks to get real-time updates](https://stripe.com/docs/webhooks)**
>
> Listen for events on your Stripe account so your integration can automatically trigger reactions.

Xano should have resources to set this up and verify the data to check that it’s a genuine request from stripe.

[![](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/df70e62f8d8153362e37ac37a728655d1b482989.jpeg "Secure Webhooks with Stripe") ](https://www.youtube.com/watch?v=VLDvBhmiXmg)

---

<div class="post-metadata">

**Author:** ![JacquesL](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JacquesL](https://community.weweb.io/u/JacquesL)\
**Post date:** [November 13, 2023, 4:23pm UTC](https://community.weweb.io/t/stripe-paiement/5374/3 "2023-11-13T16:23:05Z")

</div>

So you suggest that I do everything in Xano ? Here is my actual workflow.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/77614ba744d82a24bd4290d2e0d28c3f92141c5e.png)

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 13, 2023, 4:32pm UTC](https://community.weweb.io/t/stripe-paiement/5374/4 "2023-11-13T16:32:21Z")

</div>

The best way to know if a payment was successful is using the webhook on your backend. Anything you check on the client can have multiple problems.

---

<div class="post-metadata">

**Author:** ![JacquesL](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JacquesL](https://community.weweb.io/u/JacquesL)\
**Post date:** [November 13, 2023, 4:39pm UTC](https://community.weweb.io/t/stripe-paiement/5374/5 "2023-11-13T16:39:55Z")

</div>

Okay, thanks !

---

<div class="post-metadata">

**Author:** ![Jack](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jack/32/5915_2.png) [@Jack](https://community.weweb.io/u/Jack)\
**Post date:** [November 14, 2023, 12:40pm UTC](https://community.weweb.io/t/stripe-paiement/5374/6 "2023-11-14T12:40:12Z")

</div>

@dorilama so if we receive a payment successful webhook on the backend, what is the easiest way to update the frontend? I know Xano doesn’t have real-time functionality, but showing this immediate update is very important for the user

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 14, 2023, 12:47pm UTC](https://community.weweb.io/t/stripe-paiement/5374/7 "2023-11-14T12:47:49Z")

</div>

There are many things you can do. After the checkout you have 2 possible redirects: success and error. On the success page fetch the result of your logic from xano (most of the time the webhook is faster than the redirect). If xano says it’s ok have a success message, otherwise tell the user that you are going to send an email as soon as the payment is confirmed and offer a way to refetch the data from xano or poll it at intervals. On xano verify the webhook data, check the payment and finish any other operation of your logic, then send a confirmation email.
