Download the PHP package assoconnect/smoney-client without Composer

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

smoney-client

PHP client for S-Money API.

Build Status Quality Gate Status

The following features of the S-Money API are implemented:

Feel free to submit a PR or contact us if you need a missing feature.

The package uses Guzzle as an HTTP client.

Installation

This package can be installed with composer

composer require assoconnect/smoney-client

Usage

This package provides several managers to handle the different S-Money features. They are self documented.

For instance, the following code creates a new User on S-Money:

``

Main concepts

User and SubAccount

An S-Money User is the holder of an financial account maintained on S-Money servers. It can be a company or a person. Such a User is identified by two ids:

A default sub account is created for each User. It's app user id is the same as the parent User.

More sub accounts can be created by the third party.

When making a payment on S-Money (to/from outside or within S-Money)this default sub account is used for the sender and beneficiary unless stated otherwise.

Payment vs account top-up

For payment coming from outside of S-Money (bank transfer, card payment, ...), if the beneficiary is the same as the card holder (or bank account holder, ...) then this operation is not a payment but an account top-up.

S-Money used a boolean named isMine to set to true when the operation is indeed a top-up and to false when it is a payment.

Redirects and callbacks

When a person submits a form hosted by S-Money (card payment, mandate signature, ...), he is redirected to a confirmation page hosted by the third party. The URL of this page is named the "redirect URL" or "return URL".

As this web request may fail (is the user closes his browser too soon for instance), S-Money also sends another request to the third party server with a payload about the operation. The target URL of this request is named the "callback URL".

Processing of the operation by the third party is expected to be handled by the callback request while the return request is just for display and user information.


All versions of smoney-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^6.3|^7.0
guzzlehttp/psr7 Version ^1.5
koriym/http-constants Version ^1.1
fig/http-message-util Version ^1.1
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 assoconnect/smoney-client contains the following files

Loading the files please wait ....