#phant

1 messages · Page 1 of 1 (latest)

oblique zephyrBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • phant, 7 hours ago, 102 messages
  • phant, 12 hours ago, 31 messages
  • phant, 1 day ago, 44 messages
  • phant, 5 days ago, 26 messages
  • phant, 5 days ago, 105 messages
  • phant, 6 days ago, 35 messages
    and 3 more
crystal dome
#

Did you specify a Customer and they have a balance already?

quasi pilot
#

yes i specified a customer

#

i dont know how the balance got credited

#

i dont need balance

crystal dome
#

Does the Customer have balance beforehand? You can check the Dashboard

quasi pilot
#

where do i see the balance in the dashboard

#

how does the balance even get credited

crystal dome
#

Okie, can you share the Checkout Session Id you created first?

#

cs_test_xxx

quasi pilot
#

cs_test_b19Ey90YvuoNQWl852rorOqSKcMssIE6uuL54JsBIbR9hGc0IDcy2h1GEG

#

this one?

#

there?

crystal dome
#

Will look in a few mins, sorry

#

If you want to test, you can just create a new Customer and use the newly created one instead

quasi pilot
#

where is it , i connot see the balance

#

can you send me a image of that section

crystal dome
#

open the Customer on your Dashboard

#

cus_PYatfGUfImTW9f

#

Look at "Invoice credit balance"

quasi pilot
#

oh i dont want to accumalate or use the balances

#

how can i stop that

#

if we cancel , done no accumulating nothing, i dont these to credited and applied, not something i want, idk why even is it automatically present

crystal dome
quasi pilot
#

why?

#

i dont need balance

crystal dome
#

This is just Test mode and you are testing right? You can just create a new Customer

#

and forget this one

quasi pilot
#

but when i go for production wont it act the same?

#

i mean using real mode

crystal dome
#

It will yes, if the customer has the balance

quasi pilot
#

i dont want that

#

if that user cancels it should just cancel

#

i dont want remaining days balance to be added

#

please help me here

#

there?

crystal dome
#

Sorry I have explained above, that's the default behavior and you can't stop a customer to use their available balance

#

They have their balance and it gets priority to offset to their next Invoice

quasi pilot
#

so if they cancel a monthly subscription in between a month, balance will be credited into their account?

#

its not about using the balance i dont want to credit balance into their account when they cancel their subscription

crystal dome
#

They are expected to have a balance aren't they? Because they paid for the full month and cancel it half way. There is a portion they paid but haven't used your service

quasi pilot
#

but we are providing access for that full month

#

thats what subscription means until the end u will get the access, if u even cancel in between

crystal dome
#

Okay can you share the Cancel Subscription request?

#

Did you set prorate to false there?

quasi pilot
#

no i didnt

#

what would that do

crystal dome
#

It will disable proration and probably won't generate balance. Can you test it again?

quasi pilot
#

how do i add this option?

#

any reference?

crystal dome
quasi pilot
#

i cannot see anywhere where i can set prorate to false

#

proration_behavior: 'none'

#

is it this?

#

i see that its only used when updating, and nothing else

#

can you please guide me on when its cancelled how to not add the balance

#

hellooo????

crystal dome
#

Hmm did you see the link above?

quasi pilot
#

yes i did see

crystal dome
#

It has the prorate parameter

#

is a boolean

quasi pilot
#

but its not shown where to use it

crystal dome
#

What do you mean where? It's a parameter you pass in when you cancel a Sub

#

How are you calling the Cancel Subscription API?

quasi pilot
#

its happening with customer portal

#

i did not build a cancellation api

#

im just listening the event when cancelled

crystal dome
#

When you choose Cancel from Dashboard, did you not choose "Pro-rated..." here?

#

Any, let's use API, and explicitly specify the prorate = false, to be sure not to create a balance

quasi pilot
#

ohh checking

#

where is this done?

crystal dome
#

The Dashboard. But as I mentioned let's use the Cancel Subscription API for sure

quasi pilot
#

then i have to create a dashboard myself

#

i dont want that

#

dont i have a option to turn if off even when the subscription plan is created?

#

come on please its been long since the query has been raised', can you please provide something

crystal dome
#

I meant to call the Cancel Subscription API directly. Why would you need to create a Dashboard? To Cancel a Subscription, you simply can call the API using your secret key, correct?

quasi pilot
#

so i can just do that right away?

crystal dome
#

Yeah

quasi pilot
#

have to create a cancel subcription api, cannnot use one from customer portal?

crystal dome
#

Yes if you are cancel the Subscription yourself. Are you letting your customer to cancel via Customer Portal?

quasi pilot
#

customer will cancel it

#

from here

crystal dome
#

Okay, then you want to setup a Billing Portal Configuration that disable proration, then provide it to your customer

quasi pilot
#

i should set create_prorations: "none" in this?

crystal dome
#

No, subscription_cancel.proration_behavior to none