persgeek/payment

1.0.0 2024-04-20 22:26 UTC

This package is not auto-updated.

Last update: 2024-06-02 21:40:29 UTC


README

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