#mike35x95x1 - Checkout

1 messages · Page 1 of 1 (latest)

misty sedge
#

Hi there!

#

I'm not sure to understand your question. What do you mean by "with callback url for setup_intent"?

#

You want to use a Checkout Session to save payment information?

gentle drift
#

well, I was suggested yesterday (by you I think 🙂 ) to use setup_intent to collect card information for later payment but according to the guide above we would need to embed stripe elements in the page. We would like to avoid that and rather use the stripe frontend on an external page if possible.

#

we develop in vue (not react) and there is no official vue plugin available to our understanding

misty sedge
#

On the documentation link you shared it shows multiple ways to save a card: Checkout Session, Payment Element, etc.

#

But what is your question exactly?

gentle drift
#

I am losing the whole point. yesterday I was told that setup_intent is the way we would collect the card info for later charges. to my understanding the checkout session will charge the card right away, correct?

misty sedge
#

I was told that setup_intent is the way we would collect the card info for later charges
Correct
to my understanding the checkout session will charge the card right away, correct?
Not true. You can create a Checkout Session in "setup" mode. That's what is explained on the page you linked: https://stripe.com/docs/payments/save-and-reuse

gentle drift
#

so it means that I can use checkout.session but NOT charge immediately but collect the card info and create new paymentIntent with this card, correct?

#

and mode: "setup" means that I don't need the payment_intent_data: {
setup_future_usage: 'off_session', }...?

misty sedge
#

Correct. When you create a Checkout Session you have to set its mode. https://stripe.com/docs/payments/save-and-reuse
It's either:

  • payment, to collect a payment
  • subscription, to start a subscription
  • setup, to save a PaymentMethod without making a charge
gentle drift
#

is the "payment_intent_data: {setup_future_usage: 'off_session'}" still mandatory for mode: "setup" to be able to use the card off_sesssion or does it work out of the box?

misty sedge
#

it works out of the box with mode: setup

gentle drift
#

thank you