Download the PHP package duronrulez/ginger-php without Composer

On this page you can find all versions of the php package duronrulez/ginger-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 ginger-php

Ginger Payments PHP Bindings

Build Status Code Coverage Scrutinizer Code Quality MIT License

You can sign up for a Ginger Payments account at https://www.gingerpayments.com

Requirements

Installation

You can install the PHP bindings using composer:

You can also use the PHP bindings without using Composer by registering an autoloader function:

Getting started

First create a new API client with your API key:

Create a new order

Creating a new order is easy:

You can also use the createIdealOrder method to create a new order using the iDEAL payment method:

Or the createCreditCardOrder method:

Once you've created your order, a transaction is created and associated with it. You will need to redirect the user to the transaction's payment URL, which you can retrieve as follows:

It is also recommended that you store the order's ID somewhere, so you can retrieve information about it later:

You can also access other information related to the order. Inspect the GingerPayments\Payment\Order class for more information. If you just want everything as a simple array, you can also use the Order::toArray method.

Getting an order

If you want to retrieve an existing order, use the getOrder method on the client:

You can iterate over all transactions in the order as follows:

You can access other information related to order transactions as well. Inspect the GingerPayments\Payment\Order\Transaction class for more information.

Getting the iDEAL issuers

When you create an order with the iDEAL payment method, you need to provide an issuer ID. The issuer ID is an identifier of the bank the user has selected. You can retrieve all possible issuers by using the getIdealIssuers method:

You can then use this information to present a list to the user of possible banks to choose from.

API documentation

Full API documentation is available here.

Tests

In order to run the tests first install PHPUnit via Composer:

Then run the test suite:


All versions of ginger-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ~5.2
beberlei/assert Version ~2.3
mathiasverraes/classfunctions Version ~1.1
ronanguilloux/isocodes Version ~1.1
rhumsaa/uuid Version ~2.8
nesbot/carbon Version ~1.16
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 duronrulez/ginger-php contains the following files

Loading the files please wait ....