#bugkiller.
1 messages ยท Page 1 of 1 (latest)
Hello! That depends on how your integration works, but typically Stripe will send it after the Invoice is created and finalized.
Can you provide more details? Like what exactly do you want to accomplish and what specifically is preventing you from accomplishing it?
I don't know how to send an invoice like upcoming invoice to user
Upcoming Invoices don't exist and can't be sent to users. They're previews of Invoices that are expected to be created in the future.
let's say you're using our service, you're using our software for your company
It sounds like you want to create an Invoice with a due date in the future?
so company paying it
but to make company pay, you need to provide invoice to the company (to explain why money has to be paid)
so our users are asking about invoice feature
Have you looked at the collection_method property on Subscriptions? https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
no, how it will look like if we change this parameter
from 'charge_automatically' to 'send_invoice'
what will be sent to user?
Yeah, instead of attempting to pay the Invoice immediately it will be sent to the customer for them to pay manually.
sent via email?
Yes, if you configure it that way.
do you have that eamil example so that I can see it
Have a look here for details: https://stripe.com/docs/billing/collection-method#set-collection-method-invoice
Example emails are here: https://stripe.com/docs/invoicing/send-email#customer-emails
Yes.
is there any way to send this email and also auto try for charge if user didn't take action ๐
and when this email will be sent?
how many days ago before current subscription period (if monhtly subscription) ended
All of these questions are answered in our documentation. I recommend you read through our docs, give this a try in test mode, and see how it works first-hand.
You can use test clocks to time travel in test mode: https://stripe.com/docs/billing/testing/test-clocks
sorry for too much questions
Questions are fine, we're here to help! But if a question can be answered by a quick read of the docs or some experimentation in test mode it's best to do those things on your end rather than run them through us. You can self-serve those kinds of things a lot faster than we can help you here. If you get stuck or have a technical question, though, we're here to help!
ok, thanks I'll try
another quetion for you
I heard that paypal is available through stripe
When will you support that feature for USA?
I can't comment on future plans here, sorry.
very dummy question but want to ask at last
If I leave collection_method as charge_automatically
and then check this box on
what will happen
this will send an invoice email or not?
That will send a notification that a renewal is coming up, but it will not send the Invoice.
Correct.
basically subscription is created something like this by checkout session
then where can I pass the collection_method?
You can't. Checkout doesn't support collection_method. You would need to create the Subscriptions yourself directly via the API.
then is there any way to change it?
for example 'checkout.session.completed'
in this webhook
I'll retreive subscription and change the collection_method
No, you can't use Checkout if you want to send Invoices the way you're describing.
but how to create subscription myself without card info
Checkout is designed to collect payment details for future automatic use.
in the prev, we used checkout modal
You would need to use something like the Payment Element.
now migrated to checkout session due to stripe update
๐ฆ
we just migrated from stripe payment popup ( get token from the popup and create subscription in backend with it) to checkout session
now maybe need to change again for send_invoice
๐ฅบ
anyway, let me think on this a little bit. thanks for your help
Yes, sorry. Checkout doesn't support your use case as described.
I read this answer so asked you to confirm
he said like
""
Create the Checkout Session
Provide payment in the Checkout UI. Once payment is complete this will create a Subscription with collection_method: charge_automatically
After it's been created, update the Subscription to set collection_method: send_invoice so that all future renewals email the invoice to the customer.
""
Is this wrong information?
in my check 'update subscription' api has parameter for
'collection_method'
You can do that, but it won't work the way you described for the initial payment.
Oh, then yes, that should work.
so fine
so from the next cycle ( next month pay or next year pay), user will get invoice email correct?
Yes, after you update to send_invoice they'll get an Invoice to pay when the next period starts.
Nice then
I couldn't find any information about when that email will be sent
from the stripe doc unfortunately
It will be sent when the Invoice is finalized.
sorry but please make me clear on this
user signed up with monthly subscription on 12th Oct
next payment should be 12th Nov right?
If you have it set to send_invoice Nov 12th is when the Invoice will be sent to them, and then they have whatever number of days you give them to pay it.
number of days I give? ( where can I set it)
Is there any way sending that email on like 10th Nov ( before 2 days)
You can set days_until_due on the Subscription: https://stripe.com/docs/api/subscriptions/update#update_subscription-days_until_due
There is no way to send it early, it's always set on the billing cycle anchor date, when a new period starts.
Ok, thanks @modern ore