#bohdan.borkivskyi
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you can use payment_behavior: "default_incomplete" as described here https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and don't pass any PM
the subscription will be created as incomplete
Thanks! Should I make extra request to pay first invoice, or I can pass some other argument to pay it automatically (as checkout session does) ?
because event if I pass PM, its still incomplete
yes you need to pay the latest_invoice https://stripe.com/docs/api/invoices/pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks a lot!
let me know if you need any more help