Skip to content

Instantly share code, notes, and snippets.

@csrcastro
Last active February 15, 2018 11:00
Show Gist options
  • Save csrcastro/e9a8746e3ceda7ea626f to your computer and use it in GitHub Desktop.
Save csrcastro/e9a8746e3ceda7ea626f to your computer and use it in GitHub Desktop.
SagePay InFrame Integration Development on Mac

SagePay InFrame Integration Development

This document outlines the necessary steps to get you up and running with SagePay iframe forms.

Go and get the Custom checkout templates from here.

Extract the files into one of your local directories.

If you're on a windows machine just run Kernow.bat (a good old double click will do).

If you're on a mac clone this gist and copy the file Kernow.sh into the Kernow folder and then run it on the command line ./Kernow.sh

You should see a simple GUI running.

Inside the unzipped folder you'll find some more documentation. Just open CustomTemplatesReadme.html in your browser.

The files to be used

Mostly we'll be wanting to embed card detail forms into checkout pages via Iframe.

To achieve this we need to use Low profile templates, mainly card_details_low.xslt and authorisation_low.xslt.

Follow the instructions on the documentation as these use the main xml files.

java -splash:lib/splash.gif -Xmx256m -cp ".:kernow.jar:saxon9ee.jar:saxon9he.jar:xercesImpl.jar:xml-apis.jar:serializer.jar:resolver.jar:org.eclipse.wst.xml.xpath2.processor_1.1.0.jar:icu4j.jar:cupv10k-runtime.jar:rsyntaxtextarea.jar:autocomplete.jar:swing-layout-1.0.4.jar:ant.jar:ant-launcher.jar" net.sf.kernow.GUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment