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.
Informations about the package paybox-direct
PayboxDirect SDK
Paybox Direct and Paybox Direct Plus PHP SDK.
Documentation
All the installation and usage instructions are located in this README. Check it for a specific versions:
- 0.x with support for Symfony
^2.7 || ^3.0
Prerequisites
This version of the project requires:
- PHP 7.4+
- Symfony 2.7+ for bundle integration
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
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