## Confirm a BLIK payment Use `stripe.confirmBlikPayment` in the [BLIK Payments with Payment Methods](/payments/blik.md) flow when the customer submits your payment form. When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically prompt the customer to authorize the transaction. > Note that `stripe.confirmBlikPayment` may take several seconds to complete. > During that time, you should disable your form from being resubmitted and show a waiting indicator like a spinner. > If you receive an error result, you should be sure to show that error to the customer, re-enable the form, and hide the waiting indicator. By default, `stripe.confirmBlikPayment` will only return when the payment has succeeded or failed. If there is an error, or when handling next actions manually by using the `handleActions: false` option, it will return a `Promise` which resolves with a `result` object. This object has either: * `result.paymentIntent`: the successful [PaymentIntent](/api/payment_intents). * `result.error`: an error. Refer to the [API reference](/api/errors) for all possible errors. **Syntax:** `stripe.confirmBlikPayment(...)` - `clientSecret` (string) **required** The [client secret](/api/payment_intents/object.md#payment_intent_object-client_secret) of the `PaymentIntent`. - `data` (object) **required** Data to be sent with the request. Refer to the [Payment Intents API](/api/payment_intents/confirm.md) for a full list of parameters. - `payment_method_options` (object) **required** An object that contains transaction specific data. - `code` (string) **required** Your customer's 6-digit BLIK code. - `payment_method` (object) Use this parameter to supply additional data relevant to the transaction, such as billing details. - `billing_details` (object) The [billing details](/api/payment_methods/create.md#create_payment_method-billing_details) associated with the transaction. - `options` (object) An options object to control the behavior of this method. - `handleActions` (boolean) Set this to `false` if you want to manually determine if the confirmation has succeeded or failed. ### Confirm a BLIK payment ```js stripe .confirmBlikPayment('{PAYMENT_INTENT_CLIENT_SECRET}', { payment_method: { blik: {}, billing_details: {} }, payment_method_options: { blik: { code: '{CODE}' } } }) .then(function(result) { if (result.error) { // Inform the customer that there was an error. } }); ``` ```es_next const {error} = await stripe.confirmBlikPayment( '{PAYMENT_INTENT_CLIENT_SECRET}', { payment_method: { blik: {}, billing_details: {} }, payment_method_options: { blik: { code: '{CODE}' } } } ); ```