#daniele-de-benedetto_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1266314657094697012
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Do you let the customer apply the coupon, or do you do it programmatically?
i do it programmatically
๐ taking over for my colleague. Let me catch up.
when you create the Checkout Session you need to pass https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_method_collection as always
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, i try that
i receive an error
payment_method_collection can be only settend in subscription mode
i don't have a subscription i collect the first payment one off and then i have a recurring in an external platform
oh! ok
sorry
in that case you can use https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for the recurring i need the card, but i have a use case in which the first total amount can be 0 so the card isn't collected
i'm already doing an off_session checkout
in that case you can use https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-mode 'setup'
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok but with the sutup i don't have the products information with the discount visualized right ?
yes that's correct
ok, i need to build my own UI in that case...
i cannot handle a payment method collection when the discount is 100%
yes unfortunately that might be the only way forward
ok, there is in plan to collect the payment method when there is a 100% disocunt and is not a subscription ?
is something that can be enabled in some way ?
maybe with the Custom Checkout ? i see it in beta
no
we don't support beta features on this channel
you can contact https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.