#dominikganic_unexpected
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/1337000812483837982
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dominikganic_best-practices, 1 day ago, 20 messages
- dominikganic_unexpected, 1 day ago, 56 messages
- dominikganic_best-practices, 1 day ago, 22 messages
- dominikganic_best-practices, 5 days ago, 47 messages
- dominikganic_api, 5 days ago, 44 messages
That's how I create subscriptions currently in my backend yet. I think, theres something wrong.
I don't know - it's null.
The thing is, it automatically charges a payment method
And the subscription changes it's status to "active"
But I don't want to automatically charge the payment method.
sub_1QpRsvLZihhBkt1crm4daLXZ
Maybe you can take a look on this subscription what happened
The subscription is active but the invoice is in draft wtf?
How can a subscription be active without a payment
automatically charges a payment method
I can't see that any charge is happening on the Subscription. Where do you see it? Since thecollection_method="send_invoice"the customer wouldn't be charged automatically.
This is expected. Subscriptions are starting immediately, giving the customer time to complete the payment for the current period.
Yes you are right, it wasn't charged but the subscription has changed anyways to active which I try to prevent
Yes, but default should be "incomplete"
But the status is "active" which is really weird. I want to let the subscription "incomplete"
For that you should create the Subscription with payment_behavior=default_incomplete: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior
Sorry, this only applies to Subscriptions with collection_method=charge_automatically
Yes but collection_method is by default "charge_automatically"
For collection_method=send_invoice the Subscription always starts as active giving the customer a few days to complete the payment.
Yes that's what I don't want to take action
Do you want send_invoice or charge_automatically?
I see you used send_invoice in this request: https://dashboard.stripe.com/test/logs/req_FU2xo3vPg7yky1
req_2KMLAqFRzXFC5a
This is the current new request
With charge_automatically
"id":
"sub_1QpSHSLZihhBkt1cN0H3PSGz"
,
And this subscription is "active"?
Ah damn!
It was paid using my positive customer balance / "credit"
That's the problem xD
Correct.
But is there any way I can disable it in this case?
For newly created subscriptions I'd like to initiate a payment with a prefered payment method instead of charging the balance of the customer
I don't think so. For testing purposes I suggest creating a new Customer. For Live mode scenarios, you can adjust the customer balance to 0: https://docs.stripe.com/api/customers/update#update_customer-balance
Ah okay, nervermind, I'll inform the user in the frontend that we'll charge his balance and furthermore his default payment method ๐
Thanks a lot for reaching out yet. I think I'm good now to continue working on it ๐ Have a nice day!
Happy to help.
You too.