Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed actions feeds not processed during fulfilment of free payments #6

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

rvdsteege
Copy link
Member

If a Gravity Forms entry results in a free payment, for example through discount, the delayed actions of the payment feed are not processed during fulfilment. The Extension::fulfill_order( $entry ) is called correctly for this entry and $addon->maybe_process_feed( $entry, $form ) too.

However, because we add the gform_is_delayed_pre_process_feed_{form_id} hook in Processor::add_hooks(), the feed does not actually get processed.

This PR removes the added filter to delay processing of the feed if the payment status is set early on to 'Success', because there is no amount to be paid. In this case, the successful payment notification will be send, the entry payment status will be updated to 'Paid', so I think the delayed feed should also be processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants