#aliRT

1 messages · Page 1 of 1 (latest)

quasi sluiceBOT
balmy egret
#

Also why do you want to manually create invoices for a subscription ? Stripe will automatically create invoices for subscriptions.

tawdry hearth
#

req_gT7MPnDQI7ZwZI

#

this is the requestID

tawdry hearth
#

second thing is that Im calculating automatic tax for VAT on invoice . so how can i handle it on subscitption alone?

balmy egret
#

So you want to to create one-off invoices by yourself instead of using subscriptions?

tawdry hearth
#

yes . i want to create invoice for recuring payment that calculate automatic_tax

#

this is my ultimate goal.

balmy egret
#

Hmm, why don't you just use subscriptions for recurring payments?

tawdry hearth
#

ok im willing to use. but than how i will be able to calulate the automatic_tax ?

balmy egret
#

Stripe Tax support subscriptions

tawdry hearth
#

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

#

?

balmy egret
#

Why your user start with invoice button instead of subscribe button?

tawdry hearth
#

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.

balmy egret
#

Let's take a step back, what's your business requirement and exactly what problem you are trying to resolve with Stripe API?

tawdry hearth
balmy egret
#

OK. so you want to preview the 1st invoice of the subscription before even creating it?

tawdry hearth
balmy egret
#

That's not possible I'm afraid, you can only call the upcoming invoice API on a existing subscription.

tawdry hearth
#

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

balmy egret
#

You mean view the invoice that the subscription generated?

tawdry hearth
#

yes. i want to preview the subscritption detail before actually subscribing

balmy egret
#

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?

tawdry hearth
#

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

balmy egret
#

Do you have the subscription ID?

tawdry hearth
#

may it will helo when someother ask you

#

yes i have

tawdry hearth
#

that is it

balmy egret
#

OK. Btw, have you consider using Checkout to let your customer to subscribe?

tawdry hearth
#

yes my existing system is based on checkout.

balmy egret
#

On the checkout page you customer can see how much they'll be charged for the subscription.

tawdry hearth
#

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

balmy egret
#

OK, the subscription's status is active because the collection_method is set to send_invoice