Download the PHP package asciisd/gate-to-pay without Composer

On this page you can find all versions of the php package asciisd/gate-to-pay. 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 gate-to-pay

Gate To Pay Laravel Package

Latest Version on Packagist Total Downloads License

A Laravel package to integrate with Gate To Pay (GateToPay) payment service, supporting both Trade API and CMS Open API.

Features

Installation

You can install the package via composer:

Configuration

Publish the config file with:

Then set up your environment variables in .env:

Migrations

This package includes migrations to:

  1. Add a gate_to_pay_customer_id column to your users table
  2. Create a gate_to_pay_cards table to store customer card information

To publish the migrations:

Then run the migrations:

Usage

Trade API Operations

The Trade API is used for card-related operations like retrieving cards, deposits, and withdrawals.

Get Customer Cards

Card Cash Out (Deposit)

Card Cash In (Withdrawal)

CMS Open API Operations

The CMS Open API is used for profile management operations.

Create a New Customer Profile

Generate a Customer ID

For backward compatibility, you can still use the original GateToPay facade for CMS operations:

Architecture

This package uses a clean architecture with separation of concerns:

  1. ApiClient: Handles HTTP requests, responses, and logging
  2. GateToPayService: Manages Trade API business logic
  3. CMSApiService: Manages CMS API business logic
  4. SignatureService: Handles secure signature generation

Testing

This package includes a comprehensive test suite. To run the tests, you need to set up the testing environment first:

  1. Copy the phpunit.xml.dist file to phpunit.xml:

  2. Update the phpunit.xml file with your test credentials:

  3. Run the tests:

Note: The phpunit.xml file is gitignored to prevent committing sensitive credentials to your repository.

License

The MIT License (MIT). Please see License File for more information.


All versions of gate-to-pay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/console Version ^10.0|^11.0
ext-openssl Version *
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 asciisd/gate-to-pay contains the following files

Loading the files please wait ...