Setup WorldPay Payments

Friday, Dec 7, 2018

The online payment processing by CourseSales.com is suitable for all online payment providers, if you have a merchant account with a bank please contact us as we may have a payment solution. See the PayPal page for more details about setting up for online payments.

Sample “online code” for WorldPay:

<!-- 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" name="BuyForm" method="POST">
<input type="hidden" name="instId"  value="211616"><!-- The "instId" value "211616" should be replaced with the Merchant's own installation Id -->
<input type="hidden" name="cartId" value="[Documents:DocumentExternalId]"><!-- This is a unique identifier for merchants use. Example: PRODUCT123 -->
<input type="hidden" name="currency" value="[Currencies:CurrencyCode]"><!-- Choose appropriate currency that you would like to use -->
<input type="hidden" name="amount"  value="[PriceDetail:PriceTotalPrice]">
<input type="hidden" name="desc" value="[CourseDates:CourseMasterDisplayCategoryName] training course">
<input type="hidden" name="testMode" value="100">
<input type="hidden" name="MC_callback" value="https://ttc.coursesales.com/public/paid?DocumentExternalId=[Documents:Do..."> 
<input type="submit" name="METHOD" value="Pay now using WorldPay" /></form>

You will need an installation ID read more about this on the WorldPay site

When you have finished integrating your CourseSale.com site with WorldPay’s payment gateway, and have sent successful test transactions to WorldPay (made a payment), you are ready to request that WorldPay activate your installation. WorldPay will confirm your activation request by email - and when satisfied with your technical integration, will set your site live.

You will need to provide WorldPay with information as outlined here on their website with the following:

  • URL of the site that you want to make live in the Your website URL for activation field eg: https://[shortname].coursesales.com/public/courses?h=1&css=publicsite.css

  • Test Transaction Instructions eg: Visit the site, choose a course, register and choose the worldpay payment method, proceed to make payment and receive email confirmation.