#Zashs

1 messages · Page 1 of 1 (latest)

white orchidBOT
hollow spade
#

You mentioned car rentals specifically, which tend to authorize a payment up front, but then actually collect the payment later. Is that what you intend to do?

raw chasm
#

Yes it is

hollow spade
#

Alright, so your concern isn't the Payment Intent expiring, it's the authorization from the issuing bank that may expire.

raw chasm
#

Yes probably

hollow spade
#

The other factor here, is that you said you also want to increment what you want to charge, so you would need the functionality discussed here as well:
https://stripe.com/docs/payments/incremental-authorization
This feature is available if you're on certain pricing plans already. If you aren't on that, you will likely need to reach out and request access via the email address provided near the top of the page.

Increase an existing authorization on a confirmed PaymentIntent before you capture it.

raw chasm
hollow spade
#

Oh, sorry about that, in that case you just need the first flow I linked.

raw chasm
#

I want the first feature place-a-hold

#

Yes

#

It says expires after 7 days by default, but i didn't understand how to change that time

hollow spade
raw chasm
#

To explain, i use a wisePOS E to do the payment, example of the code to create payment intent

$intent = $stripe->paymentIntents->create([
'amount' => $json_obj->amount,
'currency' => 'eur',
'payment_method_types' => [
'card_present',
],
'capture_method' => 'manual'
]);
And in thi way
$stripe->paymentIntents->create([
'amount' => 1099,
'currency' => 'usd',
'payment_method' => 'pm_card_visa',
'confirm' => true,
'capture_method' => 'manual',
'expand' => ['latest_charge'],
'payment_method_options' => [
'card' => ['request_extended_authorization' => 'if_available'],
],
]);
I can extend the bank authorization until the limits of each card, is that it?

#

This is server-driven

hollow spade
#

Oh, you're using Terminal.

#

I think that changes most of what I've said so far.

raw chasm
#

I use the terminal to get the card information and create the payment intent, sorry didn't ssaid sooner.

raw chasm
hollow spade
#

Sorry, the server is busy at the moment, I was in another thread. I'm trying to find the docs specific to separating authorization and capture for Terminal payments, the flows I was providing you with before were for online payments rather than in person payments.

raw chasm
#

So with this code:
$stripe->paymentIntents->create([
'amount' => 1000,
'currency' => 'usd',
'payment_method_types' => ['card_present'],
'capture_method' => 'manual',
'payment_method_options' => [
'card_present' => ['request_extended_authorization' => true],
],
]);
I can do it and it will extend until the bank card limit, right? Do i need to specify the time?

hollow spade
#

Correct

raw chasm
#

Thank you very much for your help, just on point.

white orchidBOT