#lec1892

1 messages ยท Page 1 of 1 (latest)

heavy warrenBOT
#

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.

wild hedge
#

by the way, it is not a subscription product. It is a one-time payment product.

pliant nacelle
#

Hello ๐Ÿ‘‹
Have you tried creating one for one-time payment?

Taking a step back, is the goal just to store the payment method?

wild hedge
#

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

pliant nacelle
#

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

wild hedge
#

I tried while waiting for you
It display a page without credit card fields

pliant nacelle
#

can you share an example URL?

wild hedge
#

sure

#

one sec

heavy warrenBOT
wet pebble
#

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

wild hedge
#

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

wet pebble
#

Gotcha. Why do you need the product exactly

#

Just need to understand what you're building

#

I don't have context

wild hedge
#

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

wet pebble
#

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

wild hedge
#

are there other alternatives?

wet pebble
#

AFAIK, no but let me double check

wild hedge
#

ok

wet pebble
#

Ah I'm wrong!

#

You should be able to use that

wild hedge
#

let me try

#

unfortunately it is not possible also

#

"message"
:
"You can only set payment_method_collection in subscription mode."

wet pebble
#

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

wild hedge
#

ok
thank you