Download the PHP package tuutti/php-klarna-payments without Composer
On this page you can find all versions of the php package tuutti/php-klarna-payments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tuutti/php-klarna-payments
More information about tuutti/php-klarna-payments
Files in tuutti/php-klarna-payments
Package php-klarna-payments
Short Description The payments API is used to create a session to offer Klarna's payment methods as part of your checkout. As soon as the purchase is completed the order should be read and handled using the [`Order Management API`](https://docs.klarna.com/api/ordermanagement). **Note:** Examples provided in this section includes full payloads, including all supported fields , required and optionals. In order to implement a best in class request we recommend you don't include customer details when initiating a payment session. Refer to [Initiate a payment](https://docs.klarna.com/klarna-payments/integrate-with-klarna-payments/step-1-initiate-a-payment/) section for further details. Read more on [Klarna payments](https://docs.klarna.com/klarna-payments/).
License unlicense
Homepage https://openapi-generator.tech
Informations about the package php-klarna-payments
php-klarna-payments
The payments API is used to create a session to offer Klarna's payment methods as part of your checkout. As soon as the purchase is completed the order should be read and handled using the Order Management API.
Note: Examples provided in this section includes full payloads, including all supported fields , required and optionals. In order to implement a best in class request we recommend you don't include customer details when initiating a payment session. Refer to Initiate a payment section for further details.
Read more on Klarna payments.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
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:
Getting Started
Please follow the installation procedure and then run the following:
API Endpoints
All URIs are relative to https://api.klarna.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| OrdersApi | cancelAuthorization | DELETE /payments/v1/authorizations/{authorizationToken} | Cancel an authorization |
| OrdersApi | createOrder | POST /payments/v1/authorizations/{authorizationToken}/order | Create an order |
| OrdersApi | purchaseToken | POST /payments/v1/authorizations/{authorizationToken}/customer-token | Generate a consumer token |
| SessionsApi | createCreditSession | POST /payments/v1/sessions | Create a session |
| SessionsApi | readCreditSession | GET /payments/v1/sessions/{session_id} | Get details about a session |
| SessionsApi | updateCreditSession | POST /payments/v1/sessions/{session_id} | Update a session |
Models
- Address
- AssetUrls
- Attachment
- AuthorizedPaymentMethod
- CreateOrderRequest
- Customer
- CustomerRead
- CustomerReadCreateToken
- CustomerTokenCreationRequest
- CustomerTokenCreationResponse
- ErrorV2
- MerchantSession
- MerchantUrls
- Options
- Order
- OrderLine
- PaymentMethodCategory
- ProductIdentifiers
- Session
- SessionCreate
- SessionRead
- Subscription
Authorization
Authentication schemes defined for the API:
basicAuth
- Type: HTTP basic authentication
Tests
To run the tests, use:
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0.0- Generator version:
7.4.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
All versions of php-klarna-payments with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
tuutti/php-klarna-base Version ^2.0