In order to be able to integrate new payment methods on your Checkout you have to first integrate the new Hosted Tokenization Page.
The new form was developed to comply with modern accesibility and UI requirement also simplyfying the integration.
Only tokenization in fronted is changing.
No change for the creditcard processing is needed. You receive PPAN and other data that is needed for the existing Authorization/Preauthorization and other requests.
---end
Integration
This documentation is simplified and should be enough for the simple integration. For extended documentation please use the extended documentation.
Session Initiation Request
In order to load the JS SDK and Hosted Tokenization Page you have first to fetch the JWT from the Server API of Payone. This is a new API Request against our Server API that will return a JWT that later has to be included while loading the SDK/HTP as a token value. Currently the validity of the Token is 10 minutes and it can be used multiple times during this time to tokenize card data.
Step 1: JWT Token Generation
Create a Json Web Token
Creating a JWT needed for later authentication within JS form when is being submitted for card processing
---end
POST Request to retrieve a JWT token
POST https://api.pay1.de/post-gateway/
Accept: application/json
Content-Type: application/x-www-form-urlencoded
request=getJWT
&mid=123456
&portalid=YOURPORTALID
&key=%HASH_of_THE_PORTAL__KEY%
formBgColor: background color of payment form fieldBgColor: background color of input field fieldBorder: border of the input field fieldOutline: outline of the input field fieldLabelColor: text color of the input field label. fieldPlaceholderColor: text color of the input field placeholder fieldTextColor: text color of the input field text fieldErrorCodeColor: text color of the error code.
---end
Step 3: Run html on a webserver to load the javaScript file from payone server
If you want to test this script locally, you can use docker to test it:
docker run -p 80:80 -v <your directory>:/usr/local/apache2/htdocs/ httpd:latest
The page will load the JavaScript and use the configured credentials to perform a tokenization request.