Worldpay Hosted Payment Gateway for Community Store for concrete5
Install Community Store First.
The WorldPay Hosted Pages Payment Gateway is enabled from dashboard/store/settings/payment.
The installation ID registered to your account is found in your WorldPay Merchant Account Administration pages.
No actual payments are taken in Test Mode.
For a little extra security enter the WorldPay Payment Response Password 'callbackPW', registered in the WorldPay Installation Management page. The addon will compare this with the one registered at WorldPay and if they don't match, flag that there has been a problem with the transaction, even if WorldPay flag the payment as a SUCCESS.
Select the currency arranged for the transactions with WorldPay.
In the WorldPay Installation Management page, the Payment Response URL will be: http(s)://<your URL>/index.php/checkout/worldpay_hosted_response This is the URL that Worldpay will use to send the Payment Response Message back to the Store. The route to /checkout/worldpay_payment_response is registered in the package controller's OnStart() and points at the function validateCompletion() .
At WorldPay, ensure the 'Payment Response enabled?' checkbox is selected. Also select the 'Enable the Shopper Response' checkbox.
Using the File Manager, upload the attached 'worldpay_success_response.txt' and 'worldpay_failure_response.txt' into Concrete5. These are editable html files, either of which will be returned to WorldPay after the Payment Response Message has been processed. They are are used to redirect WorldPay back to the correct URL in the Store. Currently set to http(s)://<your URL>/index.php/checkout/complete
Within 'worldpay_failure_response.txt' is a tag <!--ERRMSG--> that is replaced by the WorldPay Payment Response Error Message processing. <WPDISPLAY ITEM=banner> is replaced by WorldPay to display the transaction details.
This payment method has been developed by Russell Curgenven - [email protected], questions about using the add-on can be directed to him.