Sample implementation for Komfortkasse API v1 in PHP
ltckomfortkasse/komfortkasse-apiv1-php
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Komfortkasse PHP Example for "Generic" (API) Access You need: - a webserver with PHP - a valid Komfortkasse login - the API Key and Accesscode of your Komfortkasse dealer account You don't need: - mysql (or any other database) Instructions: ============= 1. Copy these files to a folder of your webserver. The webserver must be reachable from the internet if you want to test full functionality. 2. Enter your API Key and Accesscode in the file komfortkasse_settings.php 3. Open komfortkasse_send.php in a browser: this will send an example order to your Komfortkasse account. (Every newly generated order number will be stored in the file order_numbers.txt.) Warning! this will be a "real" order, but you can mark this order as cancelled later on. Please contact support if you want to permanently delete those example orders. 4. Open your Komfortkasse Dealer Area and set the URL of your server and the path of the file komfortkasse_receive.php in the API settings. Example: /your/path/komfortkasse_receive.php 5. Click "Read orders" in the Komfortkasse Dealer Area. You should get a message saying "No new orders read". 6. Now add a order number of your choice to the file order_numbers.txt. This simulates a order that has been added, but not transferred via API (e.g. because there was a network problem). Open your Komfortkasse Dealer Area and select "Read orders" again. You should now see a message saying "1 new orders read." 7. Mark one of the orders as paid in your Komfortkasse Dealer Area (select "orders" in the main menu, select an order, then click "Mark as paid"). Then click "Perform update". You should see a message "1 orders updated". Plus, the order number and payment status was written to the file received_updates.txt. You can repeat this step with cancelling an order. If all the above steps are working, the PHP test environment for Komfortkasse works. You can now start to integrate your real system into those php files.
About
Sample implementation for Komfortkasse API v1 in PHP
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published