#lec1892
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
by the way, it is not a subscription product. It is a one-time payment product.
Hello ๐
Have you tried creating one for one-time payment?
Taking a step back, is the goal just to store the payment method?
Have you tried creating one for one-time payment?
no
how can I do it?
Taking a step back, is the goal just to store the payment method?
the goal is to provide the customer with a limited product that cost zero, and be sure that his credit card is valid
no
how can I do it?
Create a $0 product using the API or the Dashboard
then pass the ID to checkout session creation request
I tried while waiting for you
It display a page without credit card fields
can you share an example URL?
Hi there we chatted briefly yesterday
If the entire point is to just collect a card for future usage and auth it, you should just use a setupintent
no
that's not the point
the goal is to provide the customer with a limited product that cost zero, and be sure that his credit card is valid
I need to achieve this from stripe hosted UIs
an it should happen in the same screen
for example
Gotcha. Why do you need the product exactly
Just need to understand what you're building
I don't have context
it is a promotional product for new user
they will create an account in my application
then they can "purchase" a product that cost $0
this product give them limited functionality in my application
after that we are going to offer them paid products
I created a checkout session for a product that costs zero
as you can see there is no fields to specify credit card data
Yeah that's expected. Checkout doesn't collect card details when it's a $0 payment. I recommend creating a checkout session in setup mode to collect card details via setupintent and then create a $0 invoice for them on the backend
are there other alternatives?
AFAIK, no but let me double check
ok
Ah I'm wrong!
We added this param: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You should be able to use that
And if you also want an invoice generated, you'll need to pass this: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation-enabled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me try
unfortunately it is not possible also
"message"
:
"You can only set payment_method_collection in subscription mode."
Ah damn ok
So yeah unfortunately my original suggestion is the only way
Sorry I overlooked where it said it was only supported in subscription mode in the api ref
Got my hopes up
We can put in a feature request to support it in payment mode, but no guarantees on if/when it would be implemented
ok
thank you