#BrianC - Checkout
1 messages · Page 1 of 1 (latest)
Presently Checkout Sessions do not support providing line_items unless you are going to charge the customer. Since a payment method saved via a SetupIntent can be used for any kind of charge, it isn't within Stripe's configuration to do this.
This is something you would need to communicate with your customer yourself.
OK. Understood. What is the setup_intent_data.description? Where does that display on the checkout if provided. As stated, the other option would be to customize or add a message on the save form
As it says here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-setup_intent_data-description
An arbitrary string attached to the object. Often useful for displaying to users.
I would test it out and see what happens
Just tested it and we can't see that it does anything, Any more info on what it is or an example of cases where it would be used?
👋 I'm hopping in since @lilac sentinel has to head out soon
Thanks. setup_intent_data.description - can we get more specifics on this, what it does, how it would be used and where this text would display?
I don't believe setup_intent_data.description will be displayed on the Checkout page, so it won't do what you want. It would be more useful if you wanted to display the description in your own UI at a later point.
Can you give me a bit more insight into why you want to give details on what you'll be charging the customer in the future? Is it a one-time payment that's going to be collected X days in the future? Or is it something more like a subscription model?
it's a one-time payment that's going to be collected X days in the future
We already have a custom implementation of this. Just trying to migrate over to pre-built for all of the SCA things, future proof, etc
The only real issue is the wording at the bottom of the checkout during setup which implies that we "could" make additional charges which is not our intent.
It would be a shame if we had to stick with the custom form over such a small messaging issue.
Unfortunately Checkout in "setup" mode doesn't offer a ton of flexibility over that messaging. If you need to have that much control, your best option would be to look into using Stripe elements instead, or to make this clear in the page before (or after) the Checkout page
OK. Thanks for your help