Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/znframework/package-payment
ZN Framework Payment Package
https://github.com/znframework/package-payment
Last synced: about 2 months ago
JSON representation
ZN Framework Payment Package
- Host: GitHub
- URL: https://github.com/znframework/package-payment
- Owner: znframework
- License: mit
- Created: 2018-05-13T12:52:42.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2021-07-23T12:50:08.000Z (over 3 years ago)
- Last Synced: 2024-08-08T22:18:24.543Z (5 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
ZN Framework Payment Package
Follow the steps below for installation and use.Installation
You only need to run the following code for the installation.```
composer require znframework/package-payment
```Documentation
Click for documentation of your library.Example Usage
Basic level usage is shown below.```php
clientId('123456')
->storeKey('19020000')
->cardType(1) # 1:visa 2:mastercard
->card('1234123412341234', 12, 18, '313')
->orderId(1)
->amount('10.00')
->returnUrl('Pay/response')
->send('test');
```
```php
# Response
$nestpay = Gateway::response('Nestpay');if( $nestpay->isApproved() )
{
echo 'İşlem başarılı.';
}
else
{
echo $nestpay->error();
}
```