#surajpatidar

1 messages · Page 1 of 1 (latest)

ruby timberBOT
floral marten
#

Hello! What's the issue?

robust plume
#

i have upgrade my subscription from gold yearly to platinum but it not work with my scenario

floral marten
#

Can you provide more details? What exactly do you need help with?

robust plume
#

yes

#

i want to like that
i have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20

#

i want like that

#

i have use subscription shedule for that

floral marten
robust plume
#
                    start_date = user.subscription.schedule.current_phase['start_date']
                    stripe.SubscriptionSchedule.modify(
                        user.subscription.schedule.id,
                        proration_behavior="always_invoice",
                        phases=[
                            {'items':
                                [
                                    {
                                        'price': current_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                'end_date': "now",
                                'start_date': start_date,
                            },

                            {'items':
                                [
                                    {
                                        'price': new_plan.id,
                                        'quantity': 1,
                                    }
                                ],
                                'start_date': "now",
                                'end_date': end_date,

                            },

                        ],
                    )````
#

i have aready enabled but it not work

floral marten
#

When you say it doesn't work what specific thing didn't work here?

robust plume
#

have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20
this not work

floral marten
#

Can you give me the Susbcription ID where this isn't working so I can take a look?

robust plume
#

sub_1NTfHCECJUF37lWXVHjnf1qf

floral marten
#

Not sure I understand, the amounts on this Subscriptions are very different from the ones you've been talking about. Can you explain in more detail? Is this the correct Subscription?

robust plume
#

yes

ruby timberBOT
supple horizon
#

hopping in here since rubeus has to head out

robust plume
#

yes

supple horizon
#

With that subscription that you shared, the latest invoice was for $578.35 - what amount were you expecting instead?

robust plume
#

have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
current plan unsued = 30-10 = 20
new plan amount after 10 days = 60-20 = 40
extra charge is 40-20 = 20

#

ii am expecting like that

supple horizon
#

Instead of a generic example can you give the specific amount you'd expect for the subscription you shared?

robust plume
#

like subscription.modify work using price changes

supple horizon
#

Again, it'd be way more helpful if you gave the EXACT amount you'd expect for the subscription you shared

robust plume
#

thank you for your time

#

no need to help

#

i will crete my custom flow

supple horizon
#

Yeah if you need the behavior you described then creating it custom would be the best

#

we do something more like this:

have subscription plan 30$ and if i upgrade with plan 60$ after 10 days so this month charge extra for new plan like
proporation of days unused = 30-10/30 = .667
new plan amount for the unused days = 60* .667 = 40.02 <- so that's how much we charge

old plan for unused days = 30 * .667 = 20.01 <- this is how much we credit

so we'll have two line items:

  • one for 40.02
  • and one for -20.01
robust plume
#

i will use subscription.modify got upgrade with same interval like month to month

#

for downgrade i will use subscription schedule