#tymm

1 messages · Page 1 of 1 (latest)

lone torrentBOT
west haven
#

hello! how can I help?

spice wadi
#

im getting incorrect subtotal.

#

but based on the example in the link i sent

#

i noticed that the "gold product" is $32.52 permonth

#

but the subtotal is $36.27?

west haven
#

can you share your request and the response? please remember to redact any sensitive info like the secret key

spice wadi
#

this is the response

#

which is different from the actual amount that we will charge customer when we call update subscription api, which is remaining time in new price - unused time in current price

west haven
#

have you already made the call to update the subscription api? if yes, can you share the request id?

spice wadi
#

not sure if this request is what u want because there are quite a number of them.... let me know, thanks req_byYyrZjZ9kD7U1

west haven
#

this is the invoice which you're referring to? after updating the Subscription - in_1MR4aSLK0bfo5HSb0VAPFDE6

spice wadi
#

yes

#

this invoice shows the correct amount

west haven
#

alright, sorry if i missed it, but what's the request body which you sent to preview the invoice?

#

i saw that you shared the response, but what's the request?

spice wadi
#

where can i get that in the stripe portal?

west haven
#

is it this one? req_v58g1VzUO4TuaG

spice wadi
#

yeah just found it

west haven
#

👀 at it

#

when you get the upcoming invoice -> it's displaying a preview of the invoice at the renewal datetime. So if you look at the 1 × Plus Plan (at RM1,000.00 / month) period.start = 1690848000 (Tuesday, 1 August 2023 00:00:00 GMT)

spice wadi
#

so how should i get the correct price?

#

the one showing in the actual invoice

west haven
#

still looking, onesec

#

try setting subscription_proration_behavior=always_invoice when you retrieve the upcoming invoice