• Resolved Zefrem23

    (@zefrem23)


    When a visitor places an order and pays through PayFast (which works fine), on their return to our site their order is not marked as ‘paid’ within WooCommerce. Is there some setting we need to change, perhaps, to make this work?

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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!

    Thread Starter Zefrem23

    (@zefrem23)

    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?

    https://cld.wthms.co/3vYrh8
    Link to image: https://cld.wthms.co/3vYrh8

    Thread Starter Zefrem23

    (@zefrem23)

    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.

    Marius Bezuidenhout

    (@mbezuidenhout)

    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?

    Zikhona

    (@olivehandmadesoaps)

    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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Order not marked as paid on return to site from PayFast’ is closed to new replies.