Download the PHP package restoore/systempay-webservice without Composer

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

Use Systempay payment webservice for Laravel 5.x

Package Laravel Release Packagist MIT License

What is the point ?

The library provides an easy and fast systempay webservice package. Web services are used to include one or several payment functions into an integrated CMS.

Common transaction operations :

To enable this option, the merchant must subscribe to the option of payment by web services.

Web services are developed according to the version 1.2 of the SOAP protocol (Simple Object Access Protocol) and are described by the following wsdl file: https://paiement.systempay.fr/vads-ws/v5?wsdl

Don't forget to read : Systempay Webservice v5 documentation

Installation

First you need to add the component to your composer.json

Update your packages with composer update or install with composer install.

After updating composer, add the ServiceProvider to the providers array in config/app.php

For Laravel >= 5.1

For Laravel 5.0

Facades

Configuration

You can execute this command from your laravel project root directory to copy config file in your config directory :

By default, the package comes with an example configuration file : config/systempay_webservice.php

In this file, you have to put your key and shopid. This parameters are given by Systempay.

Test environment

If you are running your app in a test environment, you can override key, shopid and env parameters using .env file

Use this following constants names : SYSTEMPAYWEBSERVICE_SHOPID, SYSTEMPAYWEBSERVICE_CERTIFICATE and SYSTEMPAYWEBSERVICE_MODE

Unit tests

You can execute this command from your laravel project root directory to copy test file in your tests directory :

After that, simply execute phpunit command to launch unit tests. Please make sure to have the last phpunit version installed. At this moment, the last version is 5.7.14.

Test will create a transaction, get uuid, return all the transaction details, update and cancel the transaction.

Create a payment request

Now we are finally ready to use the package! Here is a little example of code to explain how does it work

What you have to know about this code

  1. CreatePayment can takes a lot of parameters so i use arrays for this function
  2. This function return a boolean
  3. If true you can have the complete result otherwise you can see error message

List of availables functions

Important thing to know

For each functions you can call Systempay::getResult() or Systempay::getLastError(). So you have access to the complete return object from systempay webservice. Please refer to the documentation to have the complete structure.

getPaymentUuid

Get an uuid (Universally Unique IDentifier) for a transaction from transactionId, creationDate and sequenceNumber

Parameters

Return

Exemple

findPayments

The findPayments operation allows to search for payments. findPayments allows to obtain a list of payments according to the search criteria. At the moment, the paymentToken, subscriptionId and uuid attributes are not taken into account for this operation.

Parameter

Return

Exemple

getPaymentDetails

The getPaymentDetails operation allows to request the results for the payment outcome to see its attributes.

Parameter

Return

Exemple

updatePayment

updatePayment allows to:

Waiting for authorization :

Note: if no detail is edited, an error code will appear and the query will be rejected.

Parameters

Return

Exemple

validatePayment

The validatePayment operation allows to authorize transaction capture in the bank on the date specified in the original payment. To be validated, transactions must have one of the following statuses:

Return

Exemple

createPayment

The call to the createPayment operation allows to initialize a payment transaction.

Depending on the attribute values in the query, it is possible to make:

For all parameters details you can refer to manual : Systempay Webservice v5 documentation

Return

refundPayment

The refundPayment operation allows to refund a buyer. The transactions subject to refund have the Captured status.

Parameters

Return

Exemple

cancelPayment

The cancelPayment operation allows to cancel a payment transaction. cancelPayment allows to definitively cancel a not-yet-captured transaction with one of the following statuses:

Parameters

Return

Exemple


All versions of systempay-webservice with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
ext-soap Version *
wsdltophp/packagebase Version ~1.0
phpunit/phpunit Version ~5.0
laravel/framework Version ~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 restoore/systempay-webservice contains the following files

Loading the files please wait ....