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: 2025-01-05 21:18:23 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 );