Support » Plugin: WooCommerce » Add form method post gateway checkout page

  • rosevp



    I’m adding our payment gateway for one of our clients who uses woocommerce.

    I’ve successfully created the gateway class and our gateway appears on the checkout page. However, it seems the only way class-wc-checkout.php “forwards” to a gateway is a “redirect”.

    Our process is to submit a “form” (tag) with method=post; basically i need to override the “Place Order” button “form action” (doing a would do the trick to but just don’t know how to add this to the checkout page). Here’s are form:

    <form action=”” method=”post” id=”login”>
    <input type=”hidden” name=”MerchantIdentifier” value=” Merchant Identifier” />
    <input type=”hidden” name=”Url” value=”_MERCHANT_CHECKOUT_URL_” />
    <input type=”hidden” name=”ErrorUrl” value=”_ERROR_URL_”>
    <input type=”IMAGE” /images/content/vpnewcheckout.png” alt=”Gateway Checkout”>

    Any suggestion?

  • The topic ‘Add form method post gateway checkout page’ is closed to new replies.