Support » Plugin: WooCommerce » Recurring payment integration. Modifying the 'Place Order' button? Code included

  • Building a website that rents equipment. Don’t want to take a deposit as it will be off putting but i need to retain access to the debit card incase someone steals or damages the equipment.

    Worldpay Future pay service will do this. It is classed as a ltd style recurring payment. However there is no plugin that can integrate this gateway into woocommerce/wordpress.

    I have the code require for the payment button:

    <!– This is a purchase token, for more information on the elements with in a purchase token see the supplied help section. –>
    <!– PLEASE NOTE: this is a test installation and values will require changing to reflect merchants requirements –>
    <form action=”https://secure-test.worldpay.com/wcc/purchase” METHOD=POST>
    <input type=”hidden” name=”desc” value=”Magazine”>
    <input type=”hidden” name=”cartId” value=”abc123″><!– This is a unique identifier for merchants use. Example: PRODUCT123 –>
    <input type=”hidden” name=”testMode” value=”100″>
    <input type=”hidden” name=”instId” value=211621><!– The “instId” value “211621” should be replaced with the Merchant’s own installation Id –>
    <input type=”hidden” name=”currency” value=”GBP”><!– Choose appropriate currency that you would like to use –>
    <input type=”hidden” name=”hideCurrency”>
    <input type=”hidden” name=”amount” value=”10.00″>
    <input type=”hidden” name=”noOfPayments” value=”0″>
    <input type=”hidden” name=”intervalUnit” value=”3″>
    <input type=”hidden” name=”intervalMult” value=”3″>
    <input type=”hidden” name=”futurePayType” value=”limited”>
    <input type=”hidden” name=”option” value=”0″>
    <input type=”hidden” name=”startDelayMult” value=”1″>
    <input type=”hidden” name=”startDelayUnit” value=”3″>
    <input type=”hidden” name=”amountLimit” value=”400″>
    <input type=”hidden” name=”lengthMult” value=”2″>
    <input type=”hidden” name=”lengthUnit” value=”4″>

    So far all i have managed to do is use Woocommerce custom payment gateway to remove bacs, paypal, cheque and replace it with a single custom gateway option.

    Any help or advice is VERY much appreciated!! World pay ensure that this is a simple thing to do but my web guy can’t think of a way around it?

    I thought if the place order button could be modified to still submit the order to WooCommerce but also redirect to the Worldpay token to complete payment?

    Hope everyone has a good weekend. Max

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

  • The topic ‘Recurring payment integration. Modifying the 'Place Order' button? Code included’ is closed to new replies.