#aliRT
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Also why do you want to manually create invoices for a subscription ? Stripe will automatically create invoices for subscriptions.
basically I'm implementing the invoicing for payments in my system. So i need to create to the invoice and send it to the email so that user can pay from there. else wise i need to create the checkout to pay for the subscription.
second thing is that Im calculating automatic tax for VAT on invoice . so how can i handle it on subscitption alone?
So you want to to create one-off invoices by yourself instead of using subscriptions?
yes . i want to create invoice for recuring payment that calculate automatic_tax
this is my ultimate goal.
Hmm, why don't you just use subscriptions for recurring payments?
ok im willing to use. but than how i will be able to calulate the automatic_tax ?
Stripe Tax support subscriptions
secondly i need the following flow :
1- user click on invoice button
2- email send to their email address
3- they click on subscribe button
4- they will get the invoice for their payment and for the recurring payment too in the future.
is it possible through subscitption alone
?
Why your user start with invoice button instead of subscribe button?
this what basically im doing. but it is not allowing me to pass the reccuring priceID here. it say it accpet one time payment price id.
Let's take a step back, what's your business requirement and exactly what problem you are trying to resolve with Stripe API?
1- he wont be able to preview the billing information, tax etc before paying
2- how he could get the invoing information on his billing address?
click on subscribe mean the subscription has started
OK. so you want to preview the 1st invoice of the subscription before even creating it?
yes exactly. I want to preview the total amount, automatic_tax amount that the stripe calculate on payment page . i
i want to see these things before the user can subscribe
That's not possible I'm afraid, you can only call the upcoming invoice API on a existing subscription.
I'd suggest you to start from this doc https://stripe.com/docs/billing/subscriptions/overview to have a better understanding on how subscription works
can you please help for the last time.
so now im implementing the same way you explain to me. i created the subsctiption and from there get the invoice.
now my only question is that how can i preview the pricing before creatting the subscritpion
You mean view the invoice that the subscription generated?
yes. i want to preview the subscritption detail before actually subscribing
As I explained earlier, that's not possible.
What's your concern of creating a subscription? are you afraid that the your customer will be charged immediately?
i got the solution .
var options = new SubscriptionCreateOptions()
{
Customer = model.StripeCustomerId,
Items = new List<SubscriptionItemOptions>
{
new SubscriptionItemOptions
{
Price = model.PriceId,
Metadata = model.GetMetadata(),
Quantity = 1,
}
},
Metadata = model.GetMetadata(),
DaysUntilDue = 30,
CollectionMethod = "send_invoice"
};
when i set the collection Method to send_invoice
it does not charge then , isntead it just active the subscitiption and email the me the invoice to paid for it
Do you have the subscription ID?
sub_1MgNo8Fyaa1ui1xy98y2pWVX
that is it
OK. Btw, have you consider using Checkout to let your customer to subscribe?
yes my existing system is based on checkout.
On the checkout page you customer can see how much they'll be charged for the subscription.
yes exactly. it was much simpler than that . but what can i do. it was my client requirement to that do in such a pethetic way
OK, the subscription's status is active because the collection_method is set to send_invoice