Download the PHP package lunalabs-srl/slimpay-php without Composer

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

SlimPay PHP

A simple PHP package to integrate the SlimPay checkout on your application that supports both iframe and redirect checkout.


Installation

You can directly install the package with:


Test the package

Create a simple PHP file with these lines:


Credit card checkout with SlimPay iframe or redirection

To create the SlimPay checkout for Credit Cards you have to init an array like this one below and call the checkout method. Customize the data and the return urls (failureUrl, successUrl and cancelUrl) with yours.

If the response has the user approval link you will be redirected to the SlimPay checkout page. Once you have filled the checkout form with your Credit Card details, a detailed response will be sent to the Server notification URI set in your SlimPay application, containing the get-card-alias link to retrieve the credit card ID and reference ID to be sent to your Payment Gateway to finish the flow. Server Notification Reference

In this response you will find the id, reference and status for the used credit card and now you will able to store these data in the payment gateway.


SEPA checkout with SlimPay iframe or redirection

To create the SlimPay iframe for SEPA direct debit you have to init an array like this one below and call the checkout method. Customize the data and the return urls (failureUrl, successUrl and cancelUrl) with yours.

If the response has the user approval link you will be redirected to the SlimPay checkout page. Once you have filled the checkout form with your IBAN, a detailed response will be sent to the Server notification URI set in your SlimPay application, containing the checkout status and the link (get-mandate) to retrieve the created mandate. Calling this link (like this one: https://api.slimpay.net/mandates/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) you can retrieve the reference ID and the UMR (RUM) number to create the payment method in your payment gateway for this user.


Get a resource through authenticated call

To retrieve a resource, you can use the getResource() method by passing the URL as shown below.


Server notification URL

It is possible to handle the SlimPay server notification. To instantiate the notification handler, write these lines:

If you want to log the notification response, you can inject you custom logger as parameter. Pay attention that your logger must have a "write()" method inside, as shown in this simple example below.


TODO

Authentication

Credit card checkout

SEPA checkout

Testing


All versions of slimpay-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ~7.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 lunalabs-srl/slimpay-php contains the following files

Loading the files please wait ....