Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @fabianpacheco,

    I understand you are having trouble with the plugin and the redirection to the thank you page. First of all, I want to check if you have set up the return URL for your payment gateway correctly. The return URL is the URL that your customers will be redirected to after they complete or cancel a payment. You can usually find this option in the plugin settings or in the payment gateway dashboard.

    Secondly, I want to ask you why you are using the woocommerce_api hook to capture the parameters from the payment gateway. This hook is meant for creating custom endpoints for the WooCommerce REST API, not for handling the payment responses. You should use a different hook, such as woocommerce_thankyou or woocommerce_payment_complete, to process the payment data and perform any actions based on the payment result. You can find more information about these hooks and how to use them on the WooCommerce documentation page.

    Please note that writing or providing custom code is not within the scope of our support policy. For development and custom coding questions, it’s best to ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. You can also seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    Thread Starter fabianpacheco

    (@fabianpacheco)

    I’m sorry, it’s a silly mistake maybe on my part, but I have to replicate a plugin and I can only be guided by another example plugin that I was given, and there I found the use of woocommerce api along with a variable called $this->notify_url = WC_Plugin_Gateway, I will enter those groups to ask for help, although I appreciate your help.

    Plugin Support Shameem – a11n

    (@shameemreza)

    Hi @fabianpacheco,

    That’s great to hear. I will mark this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘woocommerce api’ is closed to new replies.