The demo app shows example use cases for an online-payment and serves as a demonstration of PAYONE's API usage and its concepts. The app shows a usage scenario for an e-shop that allows Credit Card, PayPal and paydirekt payment methods.
As for how to read this README for the first time, we recommend to
Detailed Readme elaborates more on tech details and PAYONE's API concepts.
So, most probably, you would want to check it out. The link to it, again: the detailed Readme.
You have two options: you can play around with the app on Gitpod, an online IDE, or you can install the app locally.
.env
file with your PAYONE credentials like in .env.example
php -S 0.0.0.0:3000
command in terminal (Ctrl + Shift + `
) to run the PHP built-in serverNote: you will probably encounter problems accessing redirect payment methods like PayPal if viewing the app in Gitpod's built-in preview browser, i.e. by clicking 'Open preview' in the 4th step, so you should go to a dedicated browser window to be able to check how redirect payment methods work - so, just click 'Open browser', and you're good to go 🙂.
Simply clone the repo and spin up a server.
You can do this by following these steps:
git clone git@github.com:PAYONE-GmbH/checkout-demo.git
cd checkout-demo/
.env
file and then populate it with your PAYONE credentials like in .env.example
php -S localhost:3000
command to run the PHP built-in serverlocalhost:3000
in your browser 🙂Prerequisites for the demo app to run are:
php-curl
extensionThis is shown in the last seconds of 'Pay via Credit Card with 3DSecure' and 'Pay via paydirekt' showcases
For the test data - follow our more detailed Readme's section "Use cases' test data"