MicroSMS transfer

Base:

$msms = $payment->online(
    new MicrosmsPayment(
        (int)shopId, 
        (int)userId,
        'hash',
        (bool)useMd5 (default: false)
    )
);

Initiate payment:

$msms->setAmount(1.23); //required
//optionals
$msms->setDescription('description');
$msms->setControl('myCustomData');
$msms->setReturnUrlc('https://notify.url');
$msms->setReturnUrl('https://payment-finished.pl');

$payment = $msms->generatePayment();
$payment->getTransactionUrl(); //transaction url
$payment->getTransactionId(); //transaction id

Last updated