#jsdesign-sw_api

1 messages ¡ Page 1 of 1 (latest)

wet meadowBOT
#

👋 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/1374599635884052572

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

austere needle
#

I want to know why the same code is different in your live environment and test environment

somber galleon
#

Hi! Looking into this!

austere needle
#

My user encountered a problem. When a customer upgrades from a one-year subscription to a two-year subscription, the ending_balance parameter and the UNIX end time of the billing cycle are incorrect.
In the test mode (req_jUg5r6JqpGkyCC), we can see that the UNIX end time before the customer upgrades the subscription is 2025 and 2026, and the billing period is 2025 and 2027 after upgrading to a two-year subscription.
However, in the live mode (req_PtVRUpmin7wWm8), the ending balance(-3057; supposedly 23335), and the billing period remains unchanged in 2026, even though the subscription is not updated to two years.
Account ID: acct_1QyFoZFhJBXi2cUJ
For example, if I have a one-year subscription product of 400$/year, and a two-year subscription product of 700$/every two years
I now spend 400$ to subscribe to a one-year product. If it has been used for half a year, I will upgrade the subscription to a two-year product. At this time, the deduction rule should be to return the remaining 200$ of the current subscription, and then deduct a full two-year payment of 700$. The total amount payable is 500$, and the subscription period is from now to today two years later.
But in req_PtVRUpmin7wWm8, the amount due is 0 (because there is ending_balance: -30.57$.) I want to confirm two things:

  1. Why is there an ending balance? Instead of paying the difference between the two subscriptions after upgrading the subscription? The customer purchased a subscription for the first time and upgraded the subscription, but the amount payable was negative.
  2. Why is the billing cycle after upgrading the subscription still March 2026 for the 1-year subscription, instead of May 2027 for the 2-year subscription?
somber galleon
#

I am testing this on my end. Give me a short while.

somber galleon
#

Hi! I am getting the correct year in test mode as well. I would suggest to convert this to a ticket so we check on this further. You will receive a message after this on how to create the ticket.