User conformation email problem between PMPro and PayFast

[ad_1]

Good Day

I have been trying to setup PMPro with PayFast for two days now. The problem that I am having is that the moment I add the PayFast intergration the conformation emails stop. I get the emails from Payfast on the subscriber side and the admin side, but no emails from PMPro.

This seems to be a blocked IP or an ITN problem. When I checked the sandbox page on Payfast there are two red sections: (https://www.visions-creative.co.za/wp-admin/admin-ajax.php?action=pmpro_payfast_itn_handler)
Status: Pending QUEUE and Result: cURL Error.

Below is what I see when I view the Response and Payload.

ITN Response: HTTP/1.1 500 Internal Server Error Server: nginx Date: Fri, 05 Jan 2024 09:52:17 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive X-Robots-Tag: noindex X-Content-Type-Options: nosniff Referrer-Policy: st

ITN Payload: m_payment_id=CDDADC63B0&pf_payment_id=1943222&payment_status=COMPLETE&item_name=test+at+Visions&item_description=&amount_gross=5.00&amount_fee=-2.30&amount_net=2.70&custom_str1=2024-01-05&custom_str2=&custom_str3=&custom_str4=&custom_str5=&custom_int1=19&custom_int2=&custom_int3=&custom_int4=&custom_int5=&name_first=&name_last=&email_address=blignajp%40gmail.com&merchant_id=10032278&token=4c9a4767-8164-40b6-9efb-ec73f532a545&billing_date=2024-01-05&signature=011ba7cfbad5878c102eca4a1dc1233f

After doing some debugging last night i found this error:

04-Jan-2024 18:47:56 UTC] PHP Fatal error:  Uncaught Error: Undefined constant “PMPROPF_DEBUG” in /home/visiofbw/public_html/wp-content/plugins/pmpro-payfast/services/payfast_itn_handler.php:108
Stack trace:
#0 /home/visiofbw/public_html/wp-content/plugins/pmpro-payfast/classes/class.pmprogateway_payfast.php(331): require_once()
#1 /home/visiofbw/public_html/wp-includes/class-wp-hook.php(324): PMProGateway_PayFast::wp_ajax_pmpro_payfast_itn_handler(”)
#2 /home/visiofbw/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#3 /home/visiofbw/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/visiofbw/public_html/wp-admin/admin-ajax.php(203): do_action(‘wp_ajax_nopriv_…’)
#5 {main}
thrown in /home/visiofbw/public_html/wp-content/plugins/pmpro-payfast/services/payfast_itn_handler.php on line 108

Please help. I feel like I am going crazy, this is the last step of the whole website and now everything comes to a standstill.

  • This topic was modified 37 minutes ago by jaco92.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer