# How to update a row after a stripe payment

**URL:** <https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087>\
**Category:** Ask for Help\
**Tags:** data-sync\
**Created:** [July 18, 2023, 10:25pm UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087 "2023-07-18T22:25:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![artoguide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artoguide/32/62640_2.png) [@artoguide](https://community.glideapps.com/u/artoguide)\
**Post date:** [July 18, 2023, 10:25pm UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087/1 "2023-07-18T22:25:42Z")

</div>

Hello guys,

I have a problem. I am building an app which create artwork description.  
After having used 10 free requests (Plan A), people can pay to get 50 more requests (Plan B).  
I added a button which leads to stripe.  
I want the people to receive their requests directly after their pay, which is important for the user experience.  
I have a purchase table with the amount of the payment, a look up with the plan B name and ID (from the table “Plans”), the email from the user.  
A created a relation between the user and the purchase.  
I want the user to have his plan being changed and his requests added only after the payment is done.  
I created a make scenario with a stripe module, confirming a payment, and giving only the email adress of the payer. I have no idea how I can pass the row ID of the purchase so that I can modify the row with the glide API and add the email adress of the user, completing the purchase row and updating the requests in the user table?

Do you have any idea how I can solve this problem? Thank you for your help 😉

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 18, 2023, 11:26pm UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087/2 "2023-07-18T23:26:18Z")

</div>

> [@artoguide](#):
>
> I want the people to receive their requests directly after their pay, which is important for the user experience.

You’ll want to write directly to the Glide Data Editor using the Glide API in order to have the best experience.

> [@artoguide](#):
>
> I have no idea how I can pass the row ID of the purchase so that I can modify the row with the glide API

You’ll want to pass the Row ID as part of the webhook (if coming from the Glide app). If users are landing on some generic stripe checkout screen with no glide context other than the email address, then you’ll need to use the query api (requires business account) to query the users table, filter by email, and return the rowID that you can use in a subsequent make module

---

<div class="post-metadata">

**Author:** ![artoguide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artoguide/32/62640_2.png) [@artoguide](https://community.glideapps.com/u/artoguide)\
**Post date:** [July 21, 2023, 9:01pm UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087/3 "2023-07-21T21:01:51Z")

</div>

Thanks a lot for your amazing and detailed answer @Robert_Petitto. It is way clearer for me now. I actually didn’t know the query api. I think, if I’m not mistaken, that the Glide API is available for the Pro plan too, but maybe the query API api is a different one. 🙂

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 22, 2023, 12:41am UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087/4 "2023-07-22T00:41:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/e/8e735f84a67be08562aa121fdc0a61c2d4278a13.png)

The “Advanced API” for querying is only available on Business & Enterprise.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 23, 2023, 12:16am UTC](https://community.glideapps.com/t/how-to-update-a-row-after-a-stripe-payment/64087/5 "2023-07-23T00:16:44Z")

</div>

What @ThinhDinh said ☝
