#Pastelito - nodejs subscriptions
1 messages · Page 1 of 1 (latest)
We have the api spec here: https://stripe.com/docs/api/subscriptions/create?lang=node
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 can check your params with that
hey bro, look
Otherwise, can you share a request ID for a failure? I can check what you're doing wrong
this is what i got, and i have a question
i want to conform and charge automatically the invoice
but if fails, i dont want to create the subscription,
the only way it works is passing allow-incomplete to the payment_behavior
i am reading this https://stripe.com/docs/api/subscriptions/create to code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What error are you getting? Can you share the request id? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center 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.
no, i am not getting an error, sorry i didnt say to you
i am creating a subscription, but if fails because the status is 'requires_payment_method', i was looking for a flow to do it and i found this
Yeah you didn't pass a payment method to the request
i think there is something missing here, an action or something , but i want to do this in just 1 step
I recommend this guide: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
oh, i already pass the parameters, i was testing
i try with default_source and default_payment_method
and its the same
Can you share the request id?
Find help and support for Stripe. Our support center 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.
req_7zFDQKKcHoncam
this is the request id
the customer has a payment method by default
if not, i can send another with the payment method and share to you the req id
Use default_incomplete to create Subscriptions with status=incomplete when the first invoice requires payment, otherwise start as active. Subscriptions transition to status=active when successfully confirming the payment intent on the first invoice.
It's because you pass default_incomplete
You probably want allow_incomplete
yeah, it works with allow incomplete, can you explain me how it works? i didnt get it when read the docs, what happen if the charge fails (for example if the card cant affort the charge)