Skip to content

You can utilize this PHP library for seamless integration with various payment gateways.

License

Notifications You must be signed in to change notification settings

persgeek/payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Payment Gateway

You can utilize this PHP library for seamless integration with various payment gateways.

How to install

composer require persgeek/payment

How to purchase

use PG\Payment\Gateways\Zibal;
use PG\Payment\Payload;

$payload = Payload::make()
    ->setBackUrl('http://localhost')
    ->setToken('YOUR_MERCHANT')
    ->setAmount(50000)
    ->setId(100);

$response = (new Zibal($payload))
    ->purchase();

print_r($response);

How to verify

use PG\Payment\Gateways\Zibal;
use PG\Payment\Payload;

$payload = Payload::make()
    ->setReference('YOUR_REFERENCE')
    ->setToken('YOUR_MERCHANT');

$response = (new Zibal($payload))
    ->verify();

print_r($response);

Supported gateways

  • Zibal

About

You can utilize this PHP library for seamless integration with various payment gateways.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages