persgeek / payment
Payment
1.0.0
2024-04-20 22:26 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- phpunit/phpunit: ^11.1
This package is not auto-updated.
Last update: 2025-05-05 01:53:40 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