#poopface - capture later
1 messages ยท Page 1 of 1 (latest)
hey there, note that the payment using this approach can only be held for 7 days before it is released
If you're trying to use with with Checkout sessions, you can enable manual capture using payment_intent_data[capture_method]=manual
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah i read about this, so i can't extend,, but i can re-hold without user's permission ?
If the payment is to be collected more than 7 days away, you cannot hold the payment that long and need to create a payment later closer to fulfillment
Creating a new hold with a payment method can be done, but may require another authentication by the bank
do i need to pass anything for the frontend ?
i read about ephemeralKey, should be passed
That's not needed for checkout sessions (with redirects to Stripe) or the server-side capture requests/off-session authorization
I wonder what if the card doesn't contain enough money to be hold, will the response indicate such a thing ?
If there are insufficient funds that would be raised at the time of authorization, you'd get an insufficient funds decline
i have another question, how should i backend look like ?
route to create session, another to send the publishable key, right ? i am little bit confused
I suggest taking a look at our example integration guides shared here: https://stripe.com/docs/checkout/quickstart
you can pick from several front/back end platforms
Stripe doesn't support Flutter, but you can draw analogs from eg react native
Note that since Checkout is Stripe-hosted, and you can redirect to it, you don't strictly need to have anything client-side to support that
can i hold the money with from the checkout session ?
const paymentIntent = await stripe.paymentIntents.create({
amount: 1099,
currency: 'usd',
automatic_payment_methods: {
enabled: true,
},
payment_method_options: {
card: {
capture_method: 'manual',
},
},
});
Yes, this is the equivalent parameter to that snippet for Checkout
thanks ๐