Download the PHP package scanpay/scanpay without Composer

On this page you can find all versions of the php package scanpay/scanpay. 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 scanpay

Scanpay PHP client

Latest Stable Version License CodeFactor

The Scanpay PHP client library provides convenient and simplified access to the Scanpay API from programs written in PHP. The library is developed and maintained by Scanpay in Denmark.

If you have any questions, concerns or ideas, please do not hesitate to e-mail us at chat.scanpay.dev.

Requirements

PHP version >= 7.4 with php-curl (libcurl >= 7.60.0). See compatibility table.

Installation

The package is published at Packagist. You can install the library via Composer:

You can then include it in your project with:

Manual installation

If you do not wish to use Composer, you can download the latest release and include it in your project:

Usage

The API documentation is available here. Most methods accept an optional per-request array with options, referred to as $options.

newURL(Array, $options): String

Create a link to our hosted payment window (docs | example).

seq(Integer, $options): Array

Fetch changes after a specified sequence number (docs | example).

parsePing(String, String): Array

Validate and parse scanpay pings (docs | example).

capture(Integer, Array, $options): Array

Capture an authorized amount from a transaction (docs | example).
The index is the number of actions recorded by your system, and it's a security measure against double captures.

charge(Integer, Array, $options): Array

Charge a subscriber (docs | example).

renew(Integer, Array, $options): String

Create a link to renew the payment method for a subscriber. (docs | example).

Options

All methods, except parsePing, accept an optional per-request $options array. You can use this to:

Compatibility table

PHP Version
CurlHandle class (polyfilled) 8.0
Typed class properties 7.4
Type declarations 7.4
Null coalescing operator 7.4
hash_equals 5.6
curl_strerror 5.5

License

Everything in this repository is licensed under the MIT license.


All versions of scanpay with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
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 scanpay/scanpay contains the following files

Loading the files please wait ....