#rarea-checkout
1 messages · Page 1 of 1 (latest)
Pasting for context:
$checkout_session = \Stripe\Checkout\Session::create([
// 'payment_method_types' => ['card'],
'mode' => 'payment',
'line_items' => [[
'name' => 'Semn Luminos',
'description' => 'Semn Luminos luminos personalizat',
'images' => ['https://artledistic.com/wp-content/uploads/2021/04/logo-neon.svg'],
'amount' => $pret,
'currency' => 'ron',
'quantity' => 1,
]],
'customer' => $customer->id,
'success_url' => $YOUR_DOMAIN . 'stripe/public/success.html',
'cancel_url' => $YOUR_DOMAIN ,
]);
Hi 👋 I see your code is creating a checkout session, can you clarify what your concern is?
No verification . LIke a alert on bancar app. Is just doing the pay.
I need the client to agree the pay . I know your api can do this . I do not now how.
Not sure what the bancar app that you're referring to is, but Checkout Sessions are fully hosted flows. If you want a different experience then what they provide then you will need to build a custom flow.
No . I men when the rest api get :payment_method_types' => ['card']
I get verification via bacnk . The pay is accept when the client is geting the notification on his bancar app . To accept or decline the pay
Sorry for my english :))
This! :)))
Oh, you're referring to the 3DS/SCA flows. Yes you do have control over when your customers are prompted for additional authentication:
https://stripe.com/docs/payments/3d-secure#controlling-when-to-present-the-3d-secure-flow
I don't think we have pre-written snippets for that. If you're continuing to work with Checkout Sessions, then you'll want to use Radar rules to require 3DS as you won't be directly creating the Payment Intents that those sessions use.
Your rest api have something easy then Checkout Sessions? For Checkout whit 3ds?
I men , Whit no product register.
I need to declare the product every time , is a customise product whit customise price .
No, Checkout is the easiest approach that allows ad-hoc pricing. Otherwise you would need to build a custom UI and experience using Stripe Elements.
Also keep in mind that if you require 3DS and a customers card/bank doesn't support it, then they won't be able to complete a purchase.
Ok .Thanks for your time! I understand now! :))
Happy to help!