Does someone have custom php code that causes gravity form to send a notification on a stripe authorization only event?
The “problem” we have right now is that we’re using stripe checkout with “form completed” notification event but we have the add_filter(
‘gform_stripe_charge_authorization_only’, ‘__return_true’ ) filter enabled. If someone completes the form and submits payment properly all is good! BUT if someone completes the form and then clicks the ‘back’ button in the stripe checkout the notification event will still fire even though the payment wasn’t authorized. And because we have the authorization only event enabled if we switch to the “payment completed” event a notification this will solve the ‘back’ button issue but it will only fire once we manually accept a payment (which we don’t want). So we are really looking for a filter that causes gravity form to send a notification only once stripe authorization event is successful.
Hello. You can create your own custom notification event. See the documentation here:
Because Gravity Forms Stripe does not listen for the authorization event specifically, you will need to add that using the gform_stripe_webhook filter:
Then, you will need to determine which event to listen for from Stripe. I belive it is issuing_authorization.created but you will want to verify that with Stripe, or by enabling Gravity Forms logging for the Stripe add-on, and testing a submission with authorization only.
Documentation for enabling logging:
Here’s a screenshot of the Stripe webhook event I believe it should be:
When you receive that authorization event, send your custom notification. That way, the notification won’t be sent on form submission, and it won’t be sent on payment received either.