-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ninja Forms notification unintentionally delayed #4
Comments
I searched the Ninja Forms codebase for
I could not find any information about Did found the open internal Basecamp to-do "Ninja Forms » Uitgestelde notificaties", the feature was requested by a few customers. @rvdsteege do you remember (or find out) if we copied the 2e299dd implementation from something? |
The Ninja Forms PayPal Express plugin uses the |
wp-pronamic-pay-ninjaforms/src/PaymentGateway.php Lines 136 to 153 in 1b18369
I don't quite understand the cookie and session code yet, they don't seem to use that in https://github.com/pronamic/ninja-forms-paypal-express/. |
The PayPal Express add-on also uses the halt/resume mechanism: However, the mechanism provided by Ninja Forms to resume processing of form actions uses the current session (managed by Ninja Forms). That would mean 'order fulfilment' will only work if the user returns immediately after payment, within the current session. From experience, we know that that is not always the case and it could also be initiated by a webhook request. The PayPal Express add-on does not support PayPal IPN, so they didn't have to cope with the issue of resuming a specific session. Therefore, we're storing the Ninja Forms session cookie to be able to restore that specific session and then resume processing of form actions: wp-pronamic-pay-ninjaforms/src/Extension.php Lines 148 to 245 in fd56200
I agree that e.g. getting the cookie from the headers is quite ugly, but I don't think there is (or at least was) any other way to get to the same end result. |
Source: https://wordpress.org/support/topic/receive-ninja-form-email-even-when-the-payment-failed/
@rvdsteege
Source: https://wordpress.org/support/topic/receive-ninja-form-email-even-when-the-payment-failed/#post-15124596
According to @rvdsteege caused by:
wp-pronamic-pay-ninjaforms/src/PaymentGateway.php
Line 156 in 1b18369
The text was updated successfully, but these errors were encountered: