#dark-customer-invoices

1 messages · Page 1 of 1 (latest)

mortal sapphireBOT
left zodiac
#

You can combine them in the API as well. Can you send me the ID of a request (req_123) from a time you god this error?

urban narwhal
#

req_4M8bhOMrgSwqAL

left zodiac
#

Hey apologies for the delay. Thank you for your request ID

#

So the issue is that you are running in to is that that is a one time invoice

#

If you are trying to subscribe the user to that price, you should create a subscription object itself as per this dochttps://stripe.com/docs/billing/subscriptions/build-subscriptions

#

If you want to charge the user just once, you can create a one time version of that price and use that on one-time invoices

urban narwhal
#

mhm thank you. it means If i want to create subscription I have to add fields to my website where customer enters his payment details? I hoped to do that completely with a stripe hosted payment site

left zodiac
#

You can do that as well. That doc shows you using your own custom page to confirm the Invoice's payment intent, but you can just link the user to the Stripe hosted invoice page and that will go to the same page you were trying to pass people to when creating the invoice directly

urban narwhal
#

when I create a checkout session I have to choose a mode (payment or subscription). so i cannot combine those two?

#

i found my answer^^

For subscription mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.

left zodiac
#

Yes for Checkout you can use both. Glad you could find your answer!

urban narwhal
#

one related question. if one customer decides to buy two times, there will be two customer objects with the same email. how can we combine those with the customer portal?

#

i dont want to have user management on my website, but completely done by stripe

#

i could use email to create checkout session, but then there is no authentication?

left zodiac
#

Unfortunately that would create two separate customers and the customer portal would only be able to show one subscription at once. You will need to manage customer IDs here to make sure that the subscriptions go on the same customer

charred carbon
#

dark-customer-invoices

urban narwhal
#

okay. if I give the customer id to the session:

In subscription mode, the customer’s default payment method will be used if it’s a card, and otherwise the most recent card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.
can I disable prefilling the card details, so I can still get the customer object, but not care about giving away customer information, because I dont have any authentication?

charred carbon
#

No there isn't a way to disable the pre-fill logic

#

If you don't have authentication, that usually means you don't know who they are so you wouldn't re-use the same Customer id cus_123