WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add form method post gateway checkout page (1 post)

  1. rosevp
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags