#Wik
1 messages · Page 1 of 1 (latest)
Hi there,
You can create a subscription with a status incomplete in case the first invoice can't be paid. You can specify payment_behavior with allow_incomplete or default_incomplete depending on your use case:
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior:~:text=Use allow_incomplete to create subscriptions with status%3Dincomplete if the first invoice cannot be paid
I used customer.subscriptions.create and a subscription was created without any invoice/payment. Is that expected?
Could you please share that subscription Id ?
sub_1Lmx5iJA8pMPzFjlQYCHBDUz
What's more looking at the logs https://dashboard.stripe.com/test/logs/req_s7ua5AazfAO58b
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I used "collection_method": "charge_automatically"
It's because you passed billing_cycle_anchor: 1666951227 when creating the sub (https://dashboard.stripe.com/test/logs/req_s7ua5AazfAO58b)
https://stripe.com/docs/api/subscriptions/create#create_subscription-billing_cycle_anchor
This is used to determine the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which is 1 month in the future 2022-10-28
@halcyon valley all good?