Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Demo site showing how the Klarna kco_rest_php library could be used. NOT INTENDED TO BE USED AS A STARTING POINT

License

Notifications You must be signed in to change notification settings

lazyguru/kco_rest_php_example

Repository files navigation

Test KCO using Klarna PHP SDK at https://github.com/klarna/kco_rest_php

NOTE: This is a demo only. Not to be used for a real site. Please don't even use it as a starting point.

Installation

  • Clone repo
  • composer install
  • Edit src/settings.php and set your MID and sharedSecret for playground access
  • Make sure to deploy somewhere publicly accessible with SSL

Running

  • Run https://[your-publicly-available-hostname]/

Additionally you can run the following

  • https://[your-publicly-available-hostname]/capture/{orderid} -> Captures the funds for the order (where {orderid} is the Klarna order ID from the success URL)

About

Demo site showing how the Klarna kco_rest_php library could be used. NOT INTENDED TO BE USED AS A STARTING POINT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published