# Execute BLIK Recurring Payment

{% hint style="info" %}
To understand how BLIK subscriptions work please see [https://docs.simpay.pl/en/payment/blik-recurrent](https://docs.simpay.pl/en/payment/blik-recurrent#executing-a-recurring-payment-subsequent-transaction)
{% endhint %}

At first you need to generate transaction:

```php
// 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:

```php
$subscription = SimPay::payment()->subscriptions()->blikAutoPayment('SUBSCRIPTION_ID')
    ->transaction($payment) // you may pass full TransactionGenerateResponse or just transactionId
    //optional fields
    ->alias(new \SimPay\Laravel\Dto\Payment\Subscription\BlikAutoPayment\BlikAutoPaymentAliasData(
        label: 'LABEL',
        noDelay: true,
    ))
    ->attempt(3)
    ->description('My description')
    // make() is required to execute autopayment
    ->make();
```

Response will be [BlikAutoPaymentSubscriptionExecutedResponse](/simpay-laravel/payments/responses/blikautopaymentsubscriptionexecutedresponse.md) or thrown SimPayException (see [Exceptions](/simpay-laravel/exceptions.md)).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://simpaypl.gitbook.io/simpay-laravel/payments/subscriptions/execute-blik-recurring-payment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
