Plugin Support
Yuki K a11n.
(@yukikatayama)
Automattic Happiness Engineer
Hi @zefrem23,
If I understand correctly, when user process payment with Payfast, the order shows “pending payment”?
Do you have debug logging enabled in the plugin’s settings? If not, please enable that . There’s an option to have the log sent to your email. Once enabled, go through checkout again to replicate the issue. Then, please provide us with the details in the debug log.
Thanks!
Hi, I turned on debug logging and put my email address in but I didn’t receive an email when I did a test transaction. Does the PayFast plugin need to be in sandbox mode for the email to be sent?
Plugin Support
Yuki K a11n.
(@yukikatayama)
Automattic Happiness Engineer
Hi,
Are all three fields filled out/enabled in the plugin’s settings?
Link to image: https://cld.wthms.co/3vYrh8
Hi, yes all three are filled in and enabled as you can see in my screenshot:
View post on imgur.com
I do not receive any email.
Plugin Support
Yuki K a11n.
(@yukikatayama)
Automattic Happiness Engineer
Hi @zefrem23,
Hmm, that’s odd. Could you upload the WP Mail Logging plugin, then go through checkout again, then check the Mail Log to see if the debug log email got sent?
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Hi @htdat,
The reason the plugin does not send a debug e-mail is due to line 81 in the file class-wc-gateway-payfast.php which disabled debug e-mails when not in sandbox mode.
Plugin Support
Yuki K a11n.
(@yukikatayama)
Automattic Happiness Engineer
Hi @mbezuidenhout,
Ah, nice catch!
Once you got the debug log to successfully send you emails, were you able to resolve why the order status was stuck in pending, instead of processing/complete?
If not, what did the debug log show?
Hi @htdat,
The reason the plugin does not send a debug e-mail is due to line 81 in the file class-wc-gateway-payfast.php which disabled debug e-mails when not in sandbox mode.
Please can you specify where exactly can I find this line?