#Sen-Subscription
1 messages · Page 1 of 1 (latest)
But if i want to cancel period end then?
Update Subscription API with cancel_at_period_end will cancel at the next billing anchor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
cancel_at_period_end
Boolean indicating whether this subscription should cancel at the end of the current period
So it means two APIs are used.
Like cancel immediately then cancel API,
Or period end then update API
Am i right?
yes
Another question is if I upgrade subscription using update API then how the money will deduct from the account?
I mean automatically money deducted from the bank account or only invoice create?
It will be prorated based on how you are updating Subscription. It will create invoices if needed, not going directly to bank account
Also explanation here: https://stripe.com/docs/api/subscriptions/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So the direct money not deducted from the customer's bank account?
Or any other possibility for my scenario?
We can generate Charge immediately at a few scenarios, and if customer is using Card, then they will be charged immediately, it they don't, we will send them Invoices. I am not sure if charging a card immediately that you considered deduct from customer bank?
If not possible at all then How invoice will work?
Like invoice created but how can actually payment be done by the customer?
we will send them Invoices
=> Where customer received the invoice? in customer email??
Sorry, let's me clarify
It's true that we will create Invoice
How will the invoice being paid, depends on how it is created
An Invoice has collection_method to either charge_automatically or send_invoice
charge_automatically means we will attempt to pay using the customer's source/payment_method
send_invoice means we will send Invoice to customer's email
we need to use the customer's source/payment_method.
So customer's source/payment_method means customer id right?
When the customer made payment by email. How can we intercept for custom system reference? Like database update or other stuff.
Hi, sorry I have been having MTGs
regarding customer's source/payment_method, no it's not customer_id, it is the PaymentMethod attached and defaulted to that Customer
Read more in here: https://stripe.com/docs/api/payment_methods/attach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
About when the customer paid the invoice by email, you will always receive the webhook event invoice.paid
That's where you would want to intercept