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
- Host: GitHub
- URL: https://github.com/niklasberglund/klarna-checkout-sandbox
- Owner: niklasberglund
- License: mit
- Created: 2015-12-07T12:58:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-20T16:46:00.000Z (over 9 years ago)
- Last Synced: 2025-01-20T02:49:09.638Z (5 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.