Browse project documentation

Saman (Sep)

Pardakhtv1.0.0-beta.4View sourceEnglish / Persian

Saman Electronic Payment gateway. SOAP-based, no settlement required.

Configuration

use Eram\Pardakht\Gateway\Saman\SamanConfig;

$config = new SamanConfig(
    merchantId: 'your-merchant-id',
);
ParameterTypeRequiredDescription
merchantIdstringYesMerchant ID from Saman bank

Purchase

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

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

// POST form redirect
echo $response->renderAutoSubmitForm();

Verify

$transaction = $gateway->verify();

Settlement

Not required. Payments are settled automatically.

Notes

  • SOAP-based — requires ext-soap
  • Uses POST form redirect (not GET)
  • 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