znframework / package-payment
ZN Framework Payment Gateway Package
Installs: 6 938
Dependents: 5
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
- znframework/package-datatypes: >=6.0
- znframework/package-datetime: >=6.0
- znframework/package-request: >=6.0
- znframework/package-services: >=6.0
- znframework/package-zerocore: >=6.0
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 require 'vendor/autoload.php'; ZN\ZN::run(); # Request $nestpay = Gateway::request('Nestpay'); $nestpay->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');
# Response $nestpay = Gateway::response('Nestpay'); if( $nestpay->isApproved() ) { echo 'İşlem başarılı.'; } else { echo $nestpay->error(); }