hr-d / pasargad-gateway
Library for interacting with PasargadGateway service
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hr-d/pasargad-gateway
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 );