Simple Integration of Worldpay Button within an HTML Page.




<!– The first line of code creates a form, which has the POST method and its action is to send the form to WorldPay.–>

<form action="https://select.worldpay.com/wcc/purchase" method="post"><!– Place your WorldPay Installation ID inside the quotes after value= –>
<input name="instId" type="hidden" value="Your installation ID" />

<!– Create a reference identifier for the item purchased inside the quotes after value= –>
<input name="cartId" type="hidden" value="Your ID for the product" />

<!– Place the cost of the item inside the quotes after value= –>
<input name="amount" type="hidden" value="The cost of the product " />

<!– Place the code for the purchase currency inside the quotes after value= –>
<input name="currency" type="hidden" value="currency code e.g. GBP, USD" />

<!– This line creates the WorlPay button. You can name it as you wish. –>
<input type="submit" value=" Buy This " />

</form>


Leave a Reply