Atlanta Fintech Hackathon¶
Here you'll find information about what technology we used during the Atlanta Fintech Hackathon. It includes how to set up your Raspberry Pi, how to see your transactions on Worldpay Total, and how to set up the Python wrapper.
Setting up your Pi for Worldpay Within @ ATDC hackathon¶
- Get a pre-provisioned SD card, which should put you on the 'Connectify' network.
- The go, and RPi Python wrapper should be ready to go, the RPC agent is available for you to provision the other wrappers too. Speak to Conor or Kevin for help with this.
How to see my transactions on Worldpay Total?¶
Don't get this confused with the Global/European system. For this hackathon you can view the transactions through the virtual terminal here: terminal.demo.securenet.com - login credentials from Clint.
We have not developed an Android wrapper, however there is one in development on the 'native-interface' branch, which allows you to call into the RPC-agent/SDC by going directly without need for RPC. This partially works, and is not certified, and is on older code, but you are free to experiment with this.
It is probably better to use a 'proxy' Pi as your consumer, and expose each step/feature as a simple RESTful API, which the Android can call to orchestrate the flow. The business logic can then be included in the Android app, with the Worldpay Within SDK running on the Pi. Please discuss with Conor for any more help on this topic.
Self provision the Raspberry Pi¶
- Get the Pi to the provisioning team so they can get it on the Connectify network, or choose Connectify with password: wpt1c123.
- You should now be able to do the rest yourself, by ssh-ing to the device at
ssh pi@wppi##e.g. for the Pi number 40:
- Change to the directory with the Worldpay Within SDK in it:
- Change to the develop branch
git checkout develop.
- Pull the latest code
- Get the latest RPC-agent for Raspberry pi
How to setup the Python 2.7 wrapper¶
- If you want to use the 2.7 python wrapper, then download Apache Thrift 0.10.0 (latest version).
- Extract it and change to the
- Run the following command
sudo python setup.py install.
- Place the RPC-agent in the python wrapper directory:
- Rename to
sudo chmod ugo+x rpc-agent.
- Test run it with
./rpc-agent -port 9018, then close it using ctrl-C and make sure it is killed using
ps -e | grep rpc-agentand if it's still running do a
- You're now ready to provision your device with your securenet credentials, and the run the example apps.
Click here for more information about the Python wrapper.
How to setup the other wrappers¶
If you want to use the Java, Node.js, Python 3 or .Net wrappers then here is further information about the setup:
- Java wrapper - or talk to Conor or Kevin, you'll need to setup a project with the source and pull in the libs.
- Node.js - or talk to Conor.
- Python 3 - talk to Kevin (HINT: once you've got this wrapper, theres a self-contained setup.py).
- .net wrapper - or talk to Conor or Kevin.
With various support on the wrappers (2.7 python does not yet support), you can use an environment variable for finding your rpc-agent
Set the environmental variable
WPW_HOME which is the path to the WPWithin Home. Binaries should go in the $WPW_HOME/bin directory.
For the Node.js and Java wrappers, first check if
$WPW_HOME is set. If so, the wrappers launch the appropriately named Rpc-agent from
$WPW_HOME/bin/. If not then look for the RPC agent in the
./rpc-agent-bin/ directory. For example, for Mac OS (go with it that it's called amd64...):
Deploying the Java wrapper to the Pi¶
Assuming you have the consumer or producer app setup in your favourite IDE:
- Do a clean build of the consumer app to generate a dist directory.
- Create a
- Copy the contents of
- In this directory create a subdirectory called
- From the latest release, get the Raspberry pi rpc-agent
- Zip up this package and put onto your Pi however you prefer.
- Unzip on the Pi.
- Run the program with
java -jar <Name-of-your-app>.jar.
- Any issues you can't debug, come and have a chat with Kevin or Conor we're happy to help.
Any issues with setting up Worldpay Within (and the wrappers) on your Raspberry Pi or Development machine please reach out to Conor Hackett or Kevin Gordon, who will be able to support you over this weekend. They've familiar with a few gotchas, and will be able to get you up and running in no time!