hr-d / pasargad-gateway
Library for interacting with PasargadGateway service
1.0.6
2024-10-05 20:48 UTC
Requires
- php: >=7.0.33
- guzzlehttp/guzzle: ^7.8
- nesbot/carbon: <2.0.0
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^6.5
README
set under params to environment PASARGAD_BASE_API_URL PASARGAD_TERMINAL_ID PASARGAD_USERNAME PASARGAD_PASSWORD
for purchase use purchase method (new payment)->purchase( $invoice, // invoice number $invoiceDate, // invoice date with any format $amount, // amount by Rial $callbackApi, $mobileNumber (optional), $email (optional) );
for confirm transaction use confirm method (new payment)->confirm( $invoice, $urlId );