• Resolved electronicsalm

    (@electronicsalm)


    Hi, i am experiencing issues with payments getting stuck on Pendig Payment

    I’ve read the forums and this seems to be a known issue , however i need to use a cron to complete transactions,

    How do i setup a cron to check for pending transactions ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paul Kevin

    (@rixeo)

    Hey there @electronicsalm,

    Hope this finds you well today. There is a setting in the plugin to turn on the cron to check for transactions. This uses the WordPress cron to run in the background to check transactions on your site. You can read this article https://spinupwp.com/doc/understanding-wp-cron/ on how to better setup WordPress cron to avoid failures.

    Warm Regards
    Paul Kevin

    Thread Starter electronicsalm

    (@electronicsalm)

    Hi Paul , thanks for your reply, i have checked the option to enable background cron,
    However i can’t any hook that’s scheduled to fire on wp-cron, i am using a plugin to check all scheduled events, nothing related to pesapal is listed ,

    Also , reading the cron setting on woocommerce setting page for this plugin, it reads,,

    In case IPN has issues, you can add a cron job on your server that will be a back-up process to ensure transactions get completed. Enable this to set the cron to run every 5 mins

    If i have to manually setup the cron, what is the hook name that the cron will call every time it needs to update transaction status ??

    Initially i thought it works out of the box after enabling the background cron option.

    Plugin Author Paul Kevin

    (@rixeo)

    Hey @electronicsalm,

    You can try to enable the option, save, then re-activate the plugin. Sometimes the cron schedule will not be set unless its on plugin re-activation.
    Regarding setting the cron in the server, this is in the link where the server cron will manage all WordPress cron schedules

    Thread Starter electronicsalm

    (@electronicsalm)

    Paul, thank you for your reply.

    I tried re-activating the plugin, the hooks gets set on cron events,
    however even after the cron picks up the hook for updating order status, the order still shows pending payment on woocommerce,

    Is there anything else i need to do ?

    Thread Starter electronicsalm

    (@electronicsalm)

    Hi Paul, i just re-installed to the latest version of the plugin v2.0.0 and everything works flawlessly.

    I guess it was issue with version 1.4.6

    Thank you very much for your support, you may mark this as resolved/closed.

    Plugin Author Paul Kevin

    (@rixeo)

    Hey @electronicsalm,

    Which version is 2.0.0?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Complete transactions using cronjob’ is closed to new replies.