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.
Download asciisd/gate-to-pay
More information about asciisd/gate-to-pay
Files in asciisd/gate-to-pay
Package gate-to-pay
Short Description Laravel package to integrate with Gate To Pay payment service
License MIT
Informations about the package gate-to-pay
Gate To Pay Laravel Package
A Laravel package to integrate with Gate To Pay (GateToPay) payment service, supporting both Trade API and CMS Open API.
Features
- Retrieve a list of cards
- Perform Cash Out transactions with internal OTP handling
- Perform Cash In transactions
- Create customer profiles via CMS Open API
- Handle request signature generation securely
- Log all request/response data for auditing
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:
- Add a
gate_to_pay_customer_idcolumn to your users table - Create a
gate_to_pay_cardstable 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:
- ApiClient: Handles HTTP requests, responses, and logging
- GateToPayService: Manages Trade API business logic
- CMSApiService: Manages CMS API business logic
- 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:
-
Copy the phpunit.xml.dist file to phpunit.xml:
-
Update the phpunit.xml file with your test credentials:
- 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
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/console Version ^10.0|^11.0
ext-openssl Version *