Download the PHP package sveaekonomi/php-instore without Composer
On this page you can find all versions of the php package sveaekonomi/php-instore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-instore
lib
The Instore API's enables cash registers to create Svea orders that the customer can checkout by following a link sent to them by SMS
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v1
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Manual Installation
Download the files and include autoload.php
:
Tests
To run the unit tests:
Getting Started
Please follow the installation procedure and then run the following:
Documentation for API Endpoints
All URIs are relative to https://webpayinstoreapi.svea.com
Class | Method | HTTP request | Description |
---|---|---|---|
OrderApi | cancelOrder | POST /api/v1/orders/{merchantOrderNumber}/cancel | Cancel the entire order. If the order has been delivered the invoice will be credited. |
OrderApi | createOrder | POST /api/v1/orders | Creates an order. A SMS message will be sent to the provided mobile phone number where the checkout can be completed. |
OrderApi | getOrderStatus | GET /api/v1/orders/{merchantOrderNumber}/status | Gets order status for a created order. When the order has been finalized customer information is added to the order status response. |
OrderApi | returnOrder | POST /api/v1/orders/{merchantOrderNumber}/return |
Documentation For Models
- Address
- CreateOrderRequest
- CreateOrderResponse
- CustomerInformation
- GetOrderStatusResponse
- OrderItem
- PresetValue
- RevokeOrderRequest
- RevokeOrderResponse
Documentation For Authorization
basic
- Type: HTTP basic authentication
Author
All versions of php-instore with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0