Sagepay Quick Start
Note: Broadleaf Commerce currently offers integration with Sagepay through a commercial integration module. To obtain this third party integration or if you have any questions about this module, please contact us at info@broadleafcommerce.org
Broadleaf Commerces offers an out-of-the-box Sagepay solution that requires little configuration and is easily set up.
You must have completed the Sagepay Environment Setup before continuing
Construct the HTML to call SagePay
Finally, you will need to have your Billing Form (or another button) generate the Sagepay Redirect form.
Your page may look something like this:
<blc:form method="POST"
th:with="sagepayRedirectDTO=${#sagepay_form.getSagepayRedirectDTO(paymentRequestDTO)}"
th:action="${sagepayRedirectDTO.redirectUrl}">
<input th:each="fieldEntry : ${sagepayRedirectDTO.hiddenFields}"
type="hidden"
th:name="${fieldEntry.key}"
th:value="${fieldEntry.value}"/>
<input type="submit" class="btn btn-success btn-sm" value="Checkout with SagePay Form"/>
</blc:form>
Done!
At this point, all the configuration should be complete and you are now ready to test your integration with Sagepay. Add something to your cart and proceed with checkout.