• Resolved retinal

    (@retinal)


    Goodmorning everyone!
    I hope not to “get out” from the forum rules by writing my request here.

    I’m creating a custom payment method to allow my client to accept payments through his bank’s virtual pos.

    I followed this guide to create a simple payment method:
    https://www.skyverge.com/blog/how-to-create-a-simple-woocommerce-payment-gateway/

    At the moment I can pass the cart data and send it correctly to the bank.
    But I would need to understand how to manage the return to the site after the payment in order to close the order and show the thank you page.

    Which function I need to add in my plugin to get return value e close my order?
    Can someone help me?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    This is a bit outside the scope of support we can provide here I’m afraid. But I may be able to help point you in the right direction.

    Returning from a third-party payment site back to your site depends on the third party site. They need to have a system that allows you to redirect back to a specific page, often specified in account settings.

    The bank’s payment page needs to redirect back, you have no control over what happens with the user’s browser at this point as they are on a different site.

    Thread Starter retinal

    (@retinal)

    Thanks Caleb,
    I try to search in bank’s settings.
    Bye

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

The topic ‘Woocommerce – Close order on custom payment method’ is closed to new replies.