#poopface - capture later

1 messages ยท Page 1 of 1 (latest)

compact umbra
#

hey there, note that the payment using this approach can only be held for 7 days before it is released

mint spruce
#

yeah i read about this, so i can't extend,, but i can re-hold without user's permission ?

compact umbra
#

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

mint spruce
#

do i need to pass anything for the frontend ?

#

i read about ephemeralKey, should be passed

compact umbra
#

That's not needed for checkout sessions (with redirects to Stripe) or the server-side capture requests/off-session authorization

mint spruce
#

I wonder what if the card doesn't contain enough money to be hold, will the response indicate such a thing ?

compact umbra
#

If there are insufficient funds that would be raised at the time of authorization, you'd get an insufficient funds decline

mint spruce
#

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

compact umbra
#

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

mint spruce
#

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',
    },
  },
});
compact umbra
mint spruce
#

thanks ๐Ÿ˜„

compact umbra
#

NP!

#

Good luck with the dev work!