Download the PHP package dalholm/omnipay-klarna without Composer

On this page you can find all versions of the php package dalholm/omnipay-klarna. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package omnipay-klarna

Omnipay: Klarna

This package is a modified version of omnipay-klarna-checkout by nyehandel and Intflow. With this package you can run on Laravel 8 and PHP 8. This package will also contain more functinallity then the original package.

Introduction

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.6+. This package implements Klarna Checkout support for Omnipay.

This package supports PHP 8

Installation

To install, simply add it to your composer.json file:

Initialization

First, create the Omnipay gateway:

Then, initialize it with the correct credentials:

Usage

For general usage instructions, please see the main Omnipay repository.

General flow

  1. Create a Klarna order
  2. Update transaction (if required)
  3. Render the Iframe
  4. Respond to redirects to checkoutUrl or confirmation_url
  5. Respond to checkout callbacks
  6. Respond to the request to push_url (indicates order was completed by client) with a ackowledgement
  7. Extend authorization (if required)
  8. Update the merchant address (if required)
  9. Perform one or more void operations

Authorize

To create a new order, use the authorize method:

This will return the order details as well as the checkout HTML snippet to render on your site.

API documentation

Render Iframe

Klarna Checkout requires an iframe to be rendered when authorizing payments:

After submitting the form within the iframe, Klarna will redirect the client to the provided confirmation_url (success) or checkout_url (failure)`.

Update transaction

While an order has not been authorized (completed) by the client, it may be updated:

The response will contain the updated order data.

API documentation

Update Merchant References

While an order has not been authorized (completed) by the client, it may be updated:

Response will be an Empty response (204)

API documentation

Extend authorization

Klarna order authorization is valid until a specific date, and may be extended (up to a maximum of 180 days). The updated expiration date may then be retrieved with a fetch request

API documentation

Capture

API documentation

Fetch

A Klarna order is initially available through the checkout API. After it has been authorized, it will be available through the Order management API (and will, after some time, no longer be available in the checkout API). This fetch request will first check whether the order exitst in the checkout API. If that is not the case, or the status indicates the order is finished, it will also fetch the order from the order management API

API documentation | Checkout | Order management

Acknowlegde

Acknowledge a completed order

API documentation

Refund

API documentation

Void

You may release the remaining authorized amount. Specifying a specific amount is not possible.

API documentation

Update customer address

This may be used when updating customer address details after the order has been authorized. Success op this operation is subject to a risk assessment by Klarna. Both addresses are required parameters.

API documentation

Units

Klarna expresses amounts in minor units as described here.


All versions of omnipay-klarna with dependencies

PHP Build Version
Package Version
Requires omnipay/common Version ^2.0||^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dalholm/omnipay-klarna contains the following files

Loading the files please wait ....