Browse project documentation

Zibal

Pardakhtv1.0.0-beta.4View sourceEnglish / Persian

Iranian payment gateway. REST-based.

Configuration

use Eram\Pardakht\Gateway\Zibal\ZibalConfig;

$config = new ZibalConfig(
    merchant: 'your-merchant-code',
);
ParameterTypeRequiredDescription
merchantstringYesYour Zibal merchant code

Purchase

$gateway = $pardakht->create('zibal', $config);

$response = $gateway->purchase(new PurchaseRequest(
    amount: Amount::fromToman(50_000),
    callbackUrl: 'https://example.com/callback',
    orderId: 'ORDER-123',
    description: 'Order payment',
    mobile: '09123456789',
));

header('Location: ' . $response->getUrl());

Verify

$transaction = $gateway->verify();

Settlement

Not required. Payments are settled automatically.

Notes

  • REST-based
  • Amount is sent in Rials

Search documentation

Search across all projects. Close this window to return to your guide.

Tab to navigate · Enter to openEsc to close