SimPay direct billing

Base:

$simpay = $payment->online(
    new SimPayDirectBillingPayment(
        'apiKey', 
        'apiPassword', 
        'serviceId as int', 
        'serviceHash'
    )
);

Generate payment:

$simpay->setAmount(15.00); //required
//optional
$simpay->setDescription('description');
$simpay->setControl('control');
$simpay->setReturnFail('https://return.url/fail');
$simpay->setReturnSuccess('https://return.url/success');
$simpay->setPhoneNumber('phoneNumber');

$simpayPayment = $simpay->generatePayment();
$simpayPayment->getTransactionUrl();
$simpayPayment->getTransactionId();

Last updated