# Run a custom action when purchase is successful

**URL:** <https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401>\
**Category:** Ask for Help\
**Created:** [December 28, 2020, 10:05pm UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401 "2020-12-28T22:05:18Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![George\_Lewis1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_lewis1/32/5517_2.png) [@George\_Lewis1](https://community.glideapps.com/u/George_Lewis1)\
**Post date:** [January 18, 2021, 3:42am UTC](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401/16 "2021-01-18T03:42:12Z")

</div>

Thanks Jack, sounds like a good set up.

I have been using the normal buy button, but running into some issues… hence the experimentation!

> [@Using Math column for Price in Stripe buy button](https://community.glideapps.com/t/using-math-column-for-price-in-stripe-buy-button/8926/13):
>
> Hey @Mark
> 
> Given limitations with row owners and computed columns, I’m using a formula in a separate google sheet to calculate the price. Which I thought was ok.
> 
> However, because of the lag (~10 seconds) if the user changes something (in my case time duration), they can then click through to pay before the price has updated.
> 
> I tried an ‘if statement’ to check value matches the same calc done in a glide computed column before allowing them to proceed. However, even when it updates in gsheets and then the data editor (where the checks are made allowing them to proceed), there’s still a delay to the app and the user can click through to buy before the price is updated.
> 
> I can’t think of any other ways to get the correct amount. Any thoughts? Or any roadmap timelines or priorities on buy button functionality?
> 
> Thanks,  
> George

---

_[View the full topic](https://community.glideapps.com/t/run-a-custom-action-when-purchase-is-successful/20401)._
