Download the PHP package nexylan/paybox-direct without Composer

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

PayboxDirect SDK

Paybox Direct and Paybox Direct Plus PHP SDK.

Latest Stable Version Latest Unstable Version License Dependency Status Reference Status

Total Downloads Monthly Downloads Daily Downloads

Build Status Scrutinizer Code Quality Code Climate Coverage Status SensioLabsInsight

Documentation

All the installation and usage instructions are located in this README. Check it for a specific versions:

Prerequisites

This version of the project requires:

Installation

First of all, you need to require this library through Composer:

After this, you can use it as is.

If you are using it on a Symfony project, you should read the following instructions for a better integration.

As a Symfony bundle

If your project is not using Symfony Full Stack, you must add the following dependencies:

Register the bundle in the kernel of your application:

Some configuration is required. Here is the default one:

Usage

Get the client instance

To communicate with the Paybox Direct (Plus) API, you have to instantiate the Paybox class:

If you are using the Symfony bundle bridge, all the parameters are already defined on the configuration side.

All you have to do is call the paybox service:

Make a request

Here is a commented example of how to make a Paybox Direct request with the SDK:

If you want to do the same via the Direct Plus protocol with a subscriber reference:

Note that you have to use Paybox::sendDirectPlusRequest method that returns a DirectPlusResponse object.

Requests reference

Here is a table listing all the available requests:

Request ID RequestInterface Paybox method ResponseInterface
00001 AuthorizeRequest sendDirectRequest DirectResponse
00002 DebitRequest sendDirectRequest DirectResponse
00003 AuthorizeAndCaptureRequest sendDirectRequest DirectResponse
00004 CreditRequest sendDirectRequest DirectResponse
00005 CancelRequest sendDirectRequest DirectResponse
00013 UpdateAmountRequest sendDirectRequest DirectResponse
00014 RefundRequest sendDirectRequest DirectResponse
00017 InquiryRequest sendInquiryRequest InquiryResponse
00051 AuthorizeRequest sendDirectPlusRequest DirectPlusResponse
00052 DebitRequest sendDirectPlusRequest DirectPlusResponse
00053 AuthorizeAndCaptureRequest sendDirectPlusRequest DirectPlusResponse
00054 CreditRequest sendDirectPlusRequest DirectPlusResponse
00055 SubscriberCancelTransactionRequest sendDirectPlusRequest DirectPlusResponse
00056 SubscriberRegisterRequest sendDirectPlusRequest DirectPlusResponse
00057 SubscriberUpdateRequest sendDirectPlusRequest DirectPlusResponse
00058 SubscriberDeleteRequest sendDirectPlusRequest DirectPlusResponse

All versions of paybox-direct with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
doctrine/annotations Version ^1.2
doctrine/cache Version ^1.0
greg0ire/enum Version ^2.1 || ^3.0 || ^4.0
guzzlehttp/guzzle Version ^6.5
paragonie/random_compat Version ^2.0
symfony/options-resolver Version ^4.0
symfony/validator Version ^4.0 || ^5.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 nexylan/paybox-direct contains the following files

Loading the files please wait ....