We have one of the users git hub page about an integration with WP Affiliate. The code us didn’t work so we spent some time going through to see how to get it to work. The action in the original code by the user (see below) didn’t actually work. AHEE__EE_Transaction__finalize__all_transaction it was found in the deprecated file.
So this is our rewrite using the AHEE__EE_Transaction_Processor__manually_update_registration_statuses for the applying payment manually, i.e. applying payment on an invoice from the backend.
unfortunately the next function throws an error as the first function does not work with payment gateways such as stripe and paypal as i’m guessing there is an action which sets the registration to paid.
We thought it would be this: AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
however it throws an error once you click on the finalize payment options button (after you have successful gone through either gateway).
forgot to mention the first function using the action AHEE__EE_Transaction_Processor__manually_update_registration_statuses works and appears correctly on the Wp affiliate program.
Hey sorry for the multple posts, we have actually fixed it. The code works and we have tested it on our site. We will be pushing it to live. Here it is for everyone interested.
Sorry for the slow response, but I’m glad you got it resolved and thank you for sharing it!
Viewing 3 reply threads
The support post ‘EE4 and WP Affiliate’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.