Developer Hints
In the Webcomponent JWT parameter
Here you'll find some example implementations to generate the JWT needed to initialize the checkout Webcomponent
Decode the cbd parameter
For better understanding of how the handle the cbd parameter on your Order Success Page.
Decoding and verifying the cbd parameter signature
You can use the following code to decode and verify the received cbd
parameter.
How we encode the cbd parameter
The following examples show how we encode the cdb
parameter before the redirect to your Order Success Page is triggered.
You don't need to implement this on your shop, but it may be useful if you want to cover your decoding implementation with tests.
Local SSL
Setup SSL for development usage.
In order to fully get the checkout component working within your local development setup you may need a HTTPS connection. On server deployments this is addressed already. But for a local development environment you need to generate a certificate, e.g. with mkcert:
Then add within your local application the generated keys and certificates:
For regular NodeJS-based builds it's sufficient to add these environment variables to get the development environment to use HTTPS:
Keep in mind, that these SSL certificates are not secure and you will receive an error in your browser. For development purposes you can either install the certificate in your local keystore or let the browser ignore this error, e.g. in Chrome you can add --ignore-certifcate-errors
to ignore these error.