#Chiko0401 - upcoming invoice
1 messages ยท Page 1 of 1 (latest)
Hi there. You must provide either the customer or subscription to retrieve an upcoming invoice. See: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But what about situation if I want to display tax calculation before a user agreed to pay?
As I understand to get tax calculation I have only the 'upcomingInvoice' function, but this I need to create customer or subscription
My situation:
- User provides his address + payment details
- My program should display prices (include tax, promocode etc..)
- Only the user decides to pay or not to pay
I don't use Checkout process, I am using Payment Intent API
So are you building out your own subscriptions with PaymentIntents, or are you utilizing our Subscriptions API? https://stripe.com/docs/api/subscriptions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, I am using it
Then you could create the sub with default incomplete and still check the upcoming invoice: https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, but what I should do if in the end a user didn't pay (let's say he closed his browser)? I need to check all inactive subscriptions and delete them? Will it be deleted automatically?
The sub is cancelled automatically if payment isn't made in 23 hours: https://stripe.com/docs/billing/subscriptions/overview#payment-window
And user?
You are right, but I want to see only actual users on the Stripe dashboard, is it possible?
Only paying users or users with subscriptions
You could see all active subscriptions at this page: https://dashboard.stripe.com/subscriptions
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And how can see only users with subscriptions?
Hello ๐
Taking over here
how can see only users with subscriptions?
On the dashboard right?
Yes
I don't think the dashboard currently supports this filter
Ok. Thank you. You can close the ticket