#Powerservice sas

1 messages ยท Page 1 of 1 (latest)

tranquil socketBOT
worthy river
#

I am not sure I understand your use case though. Can you explain more of what you are trying to do here and what issue you are running in to?

rugged dust
#

Thanks for replayng
I don't use payment intent, just that (PHP)
$checkout_session = \Stripe\Checkout\Session::create([
'payment_method_types' => $payment_method,
'line_items' => [[
'price_data' => [
'currency' => 'eur',
'unit_amount' => $totaleOrdine,
'product_data' => [
'name' => 'Rif. ordine n. '.$num.' del '.$data_ordine,
'images' => [$G_global->dominio . DIRECTORY_SEPARATOR . $G_global->nameLogo],
],
],
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $baseReturnUrl . '/confermaOrdine.php?id_ordine='.$idordine.'&strstripe=1&sessionid={CHECKOUT_SESSION_ID}',
'cancel_url' => $baseReturnUrl . '/ordine_pagamento.php?id_ordine='.$idordine.'&strstripe=0',
]);

Where can I set confirm: false?

worthy river
#

Those payment intents shouldn't automatically be confirmed

#

Can you send me the ID of a payment intent that you saw this on?

#

Apologies for the delay, server is very busy but we should be more on top of it now

heady shale
#

Hi there ๐Ÿ‘‹ can you elaborate a bit on what you're trying to accomplish? It is expected for Checkout Sessions to confirm their Payment Intents when the customer is completing the checkout process. If you want control over the confirmation step, then you will need to build a custom payment page to handle that.

If you're instead looking to have the authorization completed (the confirmation step) during the customer checking out, but want to wait to actually capture the funds from that payment, then you'll want to look at using the payment_intent_data.capture_method parameter:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method