An open API service indexing awesome lists of open source software.

https://github.com/niklasberglund/klarna-checkout-sandbox

Whip up a Klarna Checkout sandbox in seconds
https://github.com/niklasberglund/klarna-checkout-sandbox

Last synced: 3 months ago
JSON representation

Whip up a Klarna Checkout sandbox in seconds

Awesome Lists containing this project

README

        

# klarna-checkout-sandbox
Whip up a Klarna Checkout sandbox in seconds. Provides a quick and easy to use interface for creating test orders in Klarna Checkout Test Drive and get their HTML snippet.

## Usage instructions
Make sure the script is executable(`chmod +x klarna-checkout-sandbox.sh`), run the script and make sure you pass your Klarna Checkout merchant id and shared secret as arguments.

`./klarna-checkout-sandbox.sh 4567 a6yQJFe1VldnBx9`

This will start a web server listening for GET requests on http://127.0.0.1:8080/order
Requests to this endpoint will trigger creation of a sample order and return it's HTML snippet.

See `./klarna-checkout-sandbox.sh -h` for more usage information.

## Klarna Checkout account creation
This script requires a Klarna Checkout merchant id and shared secret which you can get by signing up for an acocunt at https://developers.klarna.com/en/se+php/kco-v2/apply-for-test-account. For more information about Klarna Checkout's API see https://developers.klarna.com/en/se+php/kco-v2/checkout-api.