#elianbraja
1 messages · Page 1 of 1 (latest)
hey there I recently closed your other thread. Is this a continuation of that query or a new challenge?
It sounds like a new question, to me
When changing a subscription billing period (eg, monthly to annual, as you're doing) an immediate payment is not option, this is forced.
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
You use case about the changes is covered there by suggesting you combine with use of pending updates to hold the changes to the subscription until payment is successful
I tried but I continue to see my invoice listed as paid in the list in my dashboard
I want to be the customer to pay the invoice, by also selecting a card and don't want to charge him immediately
I tried by adding these two fields
payment_behavior:'pending_if_incomplete',
proration_behavior: 'always_invoice',
Also wanted to ask, since Stripe issues an immediate payment. What happens if customer does not have enough funds on the used card by Stripe?
Can you please help me?
Can you elaborate on this? I'm not sure what you mean.
the invoice created by the "update subscription" from monthly-to annually automatically charges money by customer's default card
The payment will fail with insufficient funds, and if using pending updates the updates will be pending until the invoice is paid (either with another attempt on the same card, or with another payment method)
I don't want this to happen
I want the invoice to always be open
and be paid by the customer manually
So if my customers update the subscription from monthly to annual, I want to create an open invoice that can be paid by the customer whenever he wants. Same as when we create a subscription with payment_behaviour: "default_incomplete"
In few words I want to prevent Stripe from automatically charging the default payment method of my customer.
Hmm I am not sure if this is possible
but why is there payment_behavior: 'pending_if_incomplete'
for update subscription
?
why it does not function?
To make the change pending if the payment fails, but the payment attempt with be automatically attempted
but can I change the payment method instead?
and please can you send me a card without funds so that I can test?
Sure you can test by swapping the customer invoice default payment method for 4000000000000341
That can be attached to the customer but payments will fail
thanks
so if my customer makes an update to the subscription, I cannot notify him immediately if the payment was successful?
I have no way, because the response from updateSubscription with result successful in both cases
You can take that response and inspect the latest_invoice to see whether the payment succeeded there
Will Stripe always try to charge user from default payment method? So if the payment fails, user can just update default card?
if, yes how long will he wait for the invoice to be paid if the newly updated card is correct?
I see here a message "Payment will be retried in 3 days" but I don't want him to wait 3 days
Can I please have a response?
Sorry, lots of questions right now and jumping around
Yes it would pull from the subscription default if set, or the customer invoice default
but he has to wait 3 days for the payment to be retried
You need to trigger the payment of the invoice after the customer provides new card information
how can I trigger?
Using the Pay Invoice api: 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.