#linkatif-checkout-setup

1 messages · Page 1 of 1 (latest)

frozen goblet
#

Are you sending prices/line items in the request to create a session?

torpid stone
#

yes

#

I want to hold payment of customer and charge that amount later when order is approved

#

am using session::create and redirect to stripe checkout page

frozen goblet
#

with setup mode you dont specify an amount, it is not the same as auth & capture

#

with checkout you would use payment_intent_data[capture_method]=manual

#

setup mode is for saving card details for a future payment

torpid stone
#

no i don't want to save the card details

#

I just want hold of payment on card and charge when order is approved

frozen goblet
#

ok, then setup mode is not what you want

#

you want payment mode, with manual capture

#

(be aware you must capture within 7 days or the auth is refunded)

torpid stone
#

ok got it let me try this thanks for your help

torpid stone
#

there is one issue
https://github.com/stripe-samples/placing-a-hold

in this it's using element stripe method for checkout like taking card on his website I want to redirect user to stripe checkout page right now i am using
$checkout_session = \Stripe\Checkout\Session::create($payment_array);

GitHub

Learn how to place a hold on a credit card (split auth / capture) - GitHub - stripe-samples/placing-a-hold: Learn how to place a hold on a credit card (split auth / capture)

#

I don't want to take customer credit card on my website I want to redirect user on stripe checkout page for security reasonse

#

@frozen goblet here?