For the complete documentation index, see llms.txt. This page is also available as Markdown.

Execute BLIK Recurring Payment

To understand how BLIK subscriptions work please see https://docs.simpay.pl/en/payment/blik-recurrent

At first you need to generate transaction:

// only required fields are shown
$payment = SimPay::payment()->generate()
    ->amount(15.00)
    ->customer(
        new \SimPay\Laravel\Dto\Payment\CustomerData(
            email: 'Email',
            countryCode: 'PL', // for BLIK it must be PL
        )
    )
    ->antifraud(
        new \SimPay\Laravel\Dto\Payment\AntiFraudData(
            systemId: 'Payer identifier in your platform (eg. user id, hashed email) - must be the same as provided during subscription creation',
        )
    )
    ->currency('PLN')
    ->directChannel('blik-recurrent') // it must be set to blik-recurrent
    ->make();

Now register subscription:

Response will be BlikAutoPaymentSubscriptionExecutedResponse or thrown SimPayException (see Exceptions).

Last updated