Browse project documentation

Sizpay

Pardakhtv1.0.0-beta.4View sourceEnglish / Persian

Sizpay payment gateway. REST-based.

Configuration

use Eram\Pardakht\Gateway\Sizpay\SizpayConfig;

$config = new SizpayConfig(
    merchantId: 'your-merchant-id',
    terminalId: 'your-terminal-id',
    username: 'your-username',
    password: 'your-password',
    signKey: 'your-sign-key',
);
ParameterTypeRequiredDescription
merchantIdstringYesMerchant ID
terminalIdstringYesTerminal ID
usernamestringYesWeb service username
passwordstringYesWeb service password
signKeystringYesRequest signing key

Purchase

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

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

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

Verify

$transaction = $gateway->verify();

Settlement

Not required. Payments are settled automatically.

Notes

  • REST-based
  • Requires 5 configuration parameters
  • 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