# Coupon codes and Stripe Issues for Zero Balance

**URL:** <https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721>\
**Category:** Job Board\
**Tags:** conditional-logic, gravity-flow, coupons, stripe\
**Created:** [January 26, 2022, 4:29pm UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721 "2022-01-26T16:29:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wadia](https://avatars.discourse-cdn.com/v4/letter/w/5daacb/32.png) [@wadia](https://community.gravityforms.com/u/wadia)\
**Post date:** [January 26, 2022, 4:29pm UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721/1 "2022-01-26T16:29:37Z")

</div>

Hi. We are a non-profit organization hosting an event later this year. We are using gravityforms for registering attendees. Some of the attendees receive coupon codes that zero out or partially reduce what they owe. There are over 20-25 coupon codes each for single use.

Currently our form throws up random errors when the promo code is used. We want it such that when a valid promo code is used and there is a zero balance, the stripe credit card module goes away and they can register directly

Anyone who can help us develop this custom solution within the gravityforms framework

---

<div class="post-metadata">

**Author:** ![user6065c0e57698e726](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@user6065c0e57698e726](https://community.gravityforms.com/u/user6065c0e57698e726)\
**Post date:** [January 27, 2022, 5:45am UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721/2 "2022-01-27T05:45:45Z")

</div>

Hello @wadia ,

I would be glad to assist you.

To discuss further in detail kindly reach me at [garry@cisinlabs.com](mailto:garry@cisinlabs.com) or Skype me: cis.garry

Looking forward for your response.

Thanks

Garry

---

<div class="post-metadata">

**Author:** ![seth1](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@seth1](https://community.gravityforms.com/u/seth1)\
**Post date:** [January 27, 2022, 6:48am UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721/3 "2022-01-27T06:48:24Z")

</div>

Hello @wadia

I am interested.

Please reach me at [seth1@talentsfromindia.com](mailto:seth1@talentsfromindia.com)

Thanks  
Seth

---

<div class="post-metadata">

**Author:** ![JamieO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jamieo/32/2521_2.png) [@JamieO](https://community.gravityforms.com/u/JamieO)\
**Post date:** [February 1, 2022, 3:09am UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721/4 "2022-02-01T03:09:24Z")

</div>

Hi Wadia,

That is an interesting project. I’d love to see how the result ends up getting built by whoever is able to assist you directly. A couple links that may help you/that developer as a part of the overall solution:

- With a normal Gravity Form, you can use the conditional logic to show/hide any specific field, but the validation of your coupon codes is happening after submit which is probably part of why your form is displaying errors currently.
- If the initial form only displays the name/coupon code and basics of event details, you could use a [Gravity Flow User Input step with conditional logic](https://gravityflow.io/docs/?d=article/23-configuring-user-input-step) to determine if the payment details are required. By setting the confirmation type to be a redirect, the user would experience the submit button leading directly to the (potential) payment step or the (when not needed) [workflow complete step](https://gravityflow.io/docs/?d=/article/259-workflow-start-complete-settings).
- If conditional logic needs a little more of a code oriented solution, [gravityflow\_step\_is\_condition\_met](https://gravityflow.io/docs/?d=/article/283-gravityflowstepisconditionmet) provides that flexibility.
- The [Stripe Extension](https://gravityflow.io/downloads/stripe/) also provides the ability to capture payment separate from the form submission, or [other step type scenarios](https://gravityflow.io/docs/?d=/article/211-stripe) such as refunds. While it wouldn’t be as ideal a user experience, you could then charge the full value and then have a refund step for those with a valid coupon pretty easily.

Cheers,  
Jamie

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [March 3, 2022, 3:09am UTC](https://community.gravityforms.com/t/coupon-codes-and-stripe-issues-for-zero-balance/11721/5 "2022-03-03T03:09:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
