WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Add form method post gateway checkout page

Add form method post gateway checkout page

  • Hello,

    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 jquery.post would do the trick to but just don’t know how to add this to the checkout page). Here’s are form:

    <form action=”https://mygateway.com/FormPost/Submit” 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”>
    </form>

    Any suggestion?

    http://wordpress.org/extend/plugins/woocommerce/

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