How can I accept payment via polish blik on stripe? According to the documentation, Blik payment should be a standalone payment option
const session = await stripe.checkout.sessions.create({
payment_method_types: ['card'],
payment_method_types: ['card', 'blik'],
line_items: [{
price_data: {
currency: 'usd',
// To accept `blik`, all line items must have currency: pln
currency: 'pln',
product_data: {
name: 'T-shirt',
},
unit_amount: 2000,
},
quantity: 1,
}],
mode: 'payment',
success_url: 'https://example.com/success',
cancel_url: 'https://example.com/cancel',
});
when I enter blik in the payment_method_types array I get a typescript error
Type '"blik"' is not assignable to type 'PaymentMethodType'.ts(2322)
Despite that, I tried to create a session as there was an option that silencing TS on one line would do the trick and the checkout session was created, but nothing has happened, no redirect whatsoever, and in the dashboard, I have a session with the status Incomplete and payment method none.
Thanks