Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (32) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-12-27 (5 months ago) | Not enough user ratings | Total: 57 | All time: 10,536 This week: 63 |
Version | License | PHP version | Categories | |||
payment-gateways 1.0 | MIT/X Consortium ... | 8 | E-Commerce, Web services, PHP 7 |
Description | Authors Ujah Chigozie Contributor | |
This package can process payments with multiple gateways using the same application code. |
To initialize the payment gateway you will need to pass the merchant interface you want to use
First, initialize your payment merchant gateway
$gateway = new PayStack("PAYMENT_PRIVATE_KEY");
Calling Merchant::getInstance
will return instances of Bank
, Customers
, and Processor as Payment
which can then be used to access individual class instances $merchant->bank->foo()
$merchant = Merchant::getInstance($gateway);
Initialize with payment instance
$payment = Merchant::getPaymentInstance($gateway);
Initialize with customer instance
$customer = Merchant::getCustomerInstance($gateway);
Initialize with a bank instance
$bank = Merchant::getBankInstance($gateway);
Easy to use PHP payment gateway library designed for PHP 8 and above. The primary goal of this library is to facilitate seamless transitions between different payment merchants, allowing developers to switch gateways without the need for relearning of new implementation and documentation. Initialization involves specifying the preferred merchant, ensuring a smooth and consistent experience. Currently, PayStack is the starting point for this library.
Installation Guide via Composer:
composer require nanoblocktech/payment-gateways
To get started see the library documentation
The MIT License (MIT). Please see License for more information.
Files |
File | Role | Description | ||
---|---|---|---|---|
docs (8 files) | ||||
src (2 files, 10 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpstan.includes.php | Aux. | Auxiliary script | ||
phpstan.neon | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
rector.php | Class | Class source |
Files | / | docs |
File | Role | Description |
---|---|---|
ACCOUNT.md | Data | Auxiliary data |
BANK.md | Data | Auxiliary data |
CHARGES.md | Data | Auxiliary data |
CUSTOMER.md | Data | Auxiliary data |
HOOK.md | Data | Auxiliary data |
PAYMENT.md | Data | Auxiliary data |
README.md | Doc. | Documentation |
RESPONSE.md | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Banks (1 file) | ||||
Charges (2 files) | ||||
Customers (2 files) | ||||
Exceptions (1 file) | ||||
Gateway (1 file) | ||||
Hooks (1 file) | ||||
Http (2 files) | ||||
Merchants (3 files) | ||||
Models (1 file) | ||||
Utils (1 file) | ||||
Merchant.php | Class | Class source | ||
MerchantInterface.php | Class | Class source |
Files | / | src | / | Charges |
File | Role | Description |
---|---|---|
Builder.php | Class | Class source |
Charge.php | Class | Class source |
Files | / | src | / | Customers |
File | Role | Description |
---|---|---|
Account.php | Class | Class source |
Customers.php | Class | Class source |
Files | / | src | / | Http |
File | Role | Description |
---|---|---|
Network.php | Class | Class source |
Response.php | Class | Class source |
Files | / | src | / | Merchants |
File | Role | Description |
---|---|---|
Clients.php | Class | Class source |
MerchantsInstance.php | Class | Class source |
PayStack.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Comments (1) | |||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.