hr-d/pasargad-gateway

Library for interacting with PasargadGateway service

1.0.6 2024-10-05 20:48 UTC

This package is auto-updated.

Last update: 2024-11-05 20:56:22 UTC


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 );