#simon_unexpected

1 messages ยท Page 1 of 1 (latest)

jade sealBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1361958162256629861

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

vague slate
#

Hi! Do you have a subscription I can look at?

dreamy zodiac
#

Is this still public chat?

#

But If i send you sub id, I guess no one else can take a look anyway correct?

#

sub_1QnJDlJzab8H3HyBEDt8Fa5G

vague slate
#

Yeap

dreamy zodiac
#

that would be the subscription where i noticed the problem

vague slate
#

I am seeing the EUR 50 being deducted off the total of the first Invoice: in_1QnJDlJzab8H3HyBkEZukYw4

#

I am not seeing it being deducted in the second invoice: in_1RDjM8Jzab8H3HyBlBWg3u0g

#

Where do you see it exactly?

dreamy zodiac
#

thats kinda my problem. it is only calculated for the unused price i marked yellow. Around 1/5 of the subscription is done, so I would expect the customer to get back (198 * 0.8=154 euros), but he only gets back (198-50) * 0.8 = 118

#

because stripe connects the voucher with the subscription payment. our idea is that the voucher is for the one-time payment in the beginning

vague slate
#

The coupon is not scoped to a particular product. So that is why it applied to the entire subscription.

#

This is why you are seeing it impact the proration of the recurring item.

dreamy zodiac
#

whats the solution to this? i dont want my customer to not book a small 30 euro subscription package because they risk loosing part of their 50 euro voucher

vague slate
dreamy zodiac
#

i guess i can only do this for new coupons. if i do it like this, the proration will work like i expect?

jade sealBOT
dreamy zodiac
#

also, my current vouchers is used by more than 100 customers already. for all of them the described problem could still appear should they decide to upgrade their packages. whats the best practise here?

charred thicket
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

dreamy zodiac
#

ill be afk for around 10 minutes

charred thicket
#

@dreamy zodiac I'm having trouble understanding the scenario. Let's forget the issue for a minute, would you mind explaining what is the expected behavior you're looking to implement?

dreamy zodiac
#
  1. I need a voucher that makes a discount on a one-time payment that is set up together with a subscription. This voucher should not have any influence if I later do any changes to the subscription. Just for the first payment 50 Euros should be deducted and thats it, then we can forget about the voucher.
  2. I need a best practise solution how to fix my current situation with the customers that already used my current voucher
charred thicket
#

the coupon was configured to apply only once

#

so whether it applies on the invoice as a whole or on the one-time item it won't make any big of a difference unless the amount of the one-time item is less than 50 EUR

#

now as you mentioned, if the customer upgrades/downgrade their membership and proration is calculated the prorated amount will be calculated based upon the actually paid value of the subscription which in this case is affected by the coupon

dreamy zodiac
charred thicket
#

so should i make this voucher permanent?
no

#

for the customers that already used that coupon (41 times used) you need to use credit notes or customer balance to adjust the invoices

#

but from now on you should create a new coupon

#

that only applies on the one-time product

#

it's important to note in that case that the one-time and recurring prices should be on 2 different products otherwise this won't work since the coupon is tied to the product rather than the price objects

dreamy zodiac
#

so, for the new coupon everything seems clear for me. regarding the customer balance/credit notes do i see this correctly, that I will need to implement the following functionality whenevery customer buys package upgrade:

  1. check if customer used voucher for this subcription in the last year (not sure yet how, but i guess it should be possible)
  2. calculate the percentage (p1) of how much time in this payment circle already passed (days since start / 365)
  3. calculate the money the customer "lost" (c_l) by the voucher only being valid from subscription start to current day (voucher_value * (1-p1))
  4. deduct c_l from customer balance/credit notes somehow
    is that the correct idea?
charred thicket
#

you don't have to do that automatically to be honest

#

I mean you can run that as a one-time script for the customers that already used the coupon

#

and then delete the coupon

dreamy zodiac
charred thicket
charred thicket
dreamy zodiac
#

okay. thanks for your help. i will talk to my bosses about it and will probably implement after easter. if there will be any questions during implementation can i reopen this thread?

charred thicket
#

can i reopen this thread?
no but don't worry when you create a new thread, this one will be referenced automatically

#

if it's not you can just send the link to this thread

dreamy zodiac
#

okay thank you. have a good day!

charred thicket
#

same to you