#dopeboyz

1 messages · Page 1 of 1 (latest)

undone tulipBOT
fringe kayak
ornate orchid
#

I want to show the proration charges to customer before upgrading a plan

#

So the customer will be aware about the additional charges

fringe kayak
ornate orchid
#

But this will only get me the upcoming invoice

#

Let me explain you

#

Suppose a user want to switch from basic to premium plan, so we want to show all the proration or additional charge that he may have to pay in addition to subscription price before he upgrades the plan

fringe kayak
#

like what the documentation mentions You can preview the effects of updating a subscription, including a preview of what proration will take place.

ornate orchid
#

Before upgrading the plan?

fringe kayak
#

yes

ornate orchid
#

Can you explain a lit more

fringe kayak
#

which specific part would you like to know more about?

ornate orchid
#

How do i get the proration charges before upgrading the plan

fringe kayak
#

pass in the details of what you'll like to update into that API (and other necessary parameters), then you'll be able to preview the upcoming invoice (which includes the proration charges) in the response. You can display those details to the customer

#

i'd suggest trying it out, it'll be easier for you to understand if you view the response

ornate orchid
#

Using the invoice api?

fringe kayak
ornate orchid
#

Okay I'll give it a try

ornate orchid
#

Hey @fringe kayak still here?

#

What parameters should i pass to preview the upcoming invoices

fringe kayak