#bibin_error

1 messages ¡ Page 1 of 1 (latest)

golden edgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1410176117897171034

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

stray sequoia
#

For Case 2 (manual capture), what is the maximum hold time allowed by card networks (Visa/Mastercard/Amex) before the authorization automatically expires?
7 days: https://docs.stripe.com/payments/place-a-hold-on-a-payment-method#authorization-validity-windows

Is the maximum hold period always 7 days, or does it vary by network or region?
Answered above

For Case 3 (long-term bookings, e.g., 30+ days before check-in), is using a SetupIntent with a small authorization (then
What's the purpose of the authorisatrion? Likely redundant if you're using a Setup Intent as that checks the validity of the card

Use manual capture to temporarily reserve funds without immediately charging the payment method.

sharp thunder
#

$setupIntent = \Stripe\SetupIntent::create([
'customer' => $customer->id,
'payment_method_types' => ['card'], // only card
'usage' => 'off_session',
], ['stripe_account' => $hotelAccountId]);

    //  Small AED 1 validation hold
    $paymentIntent = \Stripe\PaymentIntent::create([
        'amount' => 200, // AED 1
        'currency' => 'aed',
        'payment_method' => $paymentMethodId,
        'customer' => $customer->id,
        'confirm' => true,
        'capture_method' => 'manual', // authorize now
        'off_session' => true,
         'metadata' => [
            'udf1'  => $check_In,
            'udf2'  => $check_Out,
            'udf3'  => $noofadults,
            'udf4'  => $noofchildren,
            'udf5'  => $roomId,
            'udf6'  => $service_charge,
            'udf7'  => $tax_amount,
            'udf8'  => $ratePlan,
            'udf9'  => $base_amount,
            'udf10' => $nightCount,
            'udf11' => $noofrooms,
            'udf12' => $rateplan_id,
            'udf13' => $booking_addon_id

        ],
    ], ['stripe_account' => $hotelAccountId]);

    //  Immediately cancel the hold
    $paymentIntent->cancel();      hi this is code for long term holding  actually  suppose i booked  for  september 21 and  22   and refund policy is 24 hrs   in this case i  hold  amount befoe 15 days   like  may be september  6  so is this possible ? or not
stray sequoia
#

Not sure what you're asking me. Sure it's possible?