#diplodocus-subscription-collections
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ very interesting question, please bear with me while I do some digging to ensure this is possible.
Thank you for your patience! Yes, you would update the collection_method parameter to change the behavior of the subscriptions payments (automatic vs invoice). When toggling to send_invoice you'll also need to provide a value for the days_until_due field:
https://stripe.com/docs/api/subscriptions/update?lang=python#update_subscription-days_until_due
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Great, thanks for the information!
If there is already a valid payment method associated with the subscription then that will be used for the subscriptions payment. If there isn't a payment method directly on the subscription then it will also look down to the customer object for payment methods to use:
https://stripe.com/docs/api/subscriptions/create?lang=python#create_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.