# Feed Processing / Delay - Conditional Logic On Payment Status (Stripe)

**URL:** <https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477>\
**Category:** Get Help\
**Tags:** payment-status, gfpaymentaddon, payments, conditional-logic, gravity-flow, stripe\
**Created:** [July 6, 2023, 4:20pm UTC](https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477 "2023-07-06T16:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ereitmeyer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/ereitmeyer/32/13182_2.png) [@ereitmeyer](https://community.gravityforms.com/u/ereitmeyer)\
**Post date:** [July 6, 2023, 4:20pm UTC](https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477/1 "2023-07-06T16:20:43Z")

</div>

Hello! Hoping I can get some help here… I’m not an experienced developer and only know enough PHP to get myself into trouble 🙂

NOTE: I’m using Gravity Forms 2.7.9 and the new Stripe 5.0 Card Field, not Stripe Checkout. I know delayed processing works (mostly) if using Checkout, but I need to use the Stripe Card for additional payment options.

There are several things I’m trying to do, and I can’t seem to figure out the combination of filters/hooks to make this work:

1. I need to delay processing of both the Google Analytics add-on AND the Zoho CRM add-on feeds until Stripe payment is complete.

2. I need to use conditional logic to trigger different feeds in both Google Analytics and Zoho CRM based on the payment\_status after payment is complete (ie. one feed if payment is successful, other feed if payment is failed)

3. Ideally, I’d like to use conditional logic for the Confirmation after payment\_completed to redirect the user to different URLs depending on whether payment was successful or failed.

I’m aware this is a tangle of a request, if anyone has any advice on how to approach this (without using Stripe Checkout) I would REALLY appreciate it!

---

<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:** [July 10, 2023, 8:21pm UTC](https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477/2 "2023-07-10T20:21:26Z")

</div>

Hello,

That’s just enough PHP to build something awesome, especially when you add Gravity Flow into your toolkit. Adding steps in a workflow for anything feed-based will move the execution from being at time of form submission (and the race conditions/concerns like you outline) to performing in the chosen step order.

I sent you a bit more details in the question you sent in via our support mailbox, but for others following along:

- For most feed-based add-ons that Gravity Forms provides, like ZohoCRM, as soon as you create the feed, your workflow will have an option to add a step to select it.
- For some, like Stripe, where it might need to refund, cancel or capture payment, there is [an extension with multiple step types](https://gravityflow.io/downloads/stripe/).
- For scenarios where you want customer or staff to review/edit or otherwise interact with the entry post-submission but prior to specific step types, an [Approval](https://docs.gravityflow.io/article/22-approval-process) or [User Input](https://docs.gravityflow.io/article/23-configuring-user-input-step) step would give you that flexibility.
- For everything else, there’s ~~Mastercard~~ , the versatile [custom step framework](https://docs.gravityflow.io/article/93-step-framework) lets you define what settings a step needs to capture and how it should process in relation to them when the step is added to a workflow.

Cheers,  
Jamie

---

<div class="post-metadata">

**Author:** ![ereitmeyer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/ereitmeyer/32/13182_2.png) [@ereitmeyer](https://community.gravityforms.com/u/ereitmeyer)\
**Post date:** [July 10, 2023, 9:17pm UTC](https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477/3 "2023-07-10T21:17:39Z")

</div>

Hi Jamie -

Got your email, thanks so much for that and for replying here! This has definitely been a tough one to figure out but I’m glad to hear that Gravity Flow can handle it.

Evan

---

<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:** [August 9, 2023, 9:17pm UTC](https://community.gravityforms.com/t/feed-processing-delay-conditional-logic-on-payment-status-stripe/15477/4 "2023-08-09T21:17:45Z")

</div>

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