One off payment alignment with BCD

37 views
Skip to first unread message

Junaid Soomro

unread,
Jul 9, 2021, 9:54:59 AM7/9/21
to Kill Bill users mailing-list
My plan that i subscribe to is as follows,

--------------------XML-----------------------------
<plan name="JIYDCIQM">
<product>ECS-1vCPU-4GB-Linux-1Yr-PartUpFront</product>
<recurringBillingMode>IN_ARREAR</recurringBillingMode>
<initialPhases>
<phase type="FIXEDTERM">
<duration>
<unit>DAYS</unit>
<number>1</number>
</duration>
<fixed>
<fixedPrice>
<price>
<currency>SAR</currency>
<value>576.978</value>
</price>
<price>
<currency>USD</currency>
<value>0.131730136986301</value>
</price>
</fixedPrice>
</fixed>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
<number>-1</number>
</duration>
<recurring>
<billingPeriod>MONTHLY</billingPeriod>
<recurringPrice>
<price>
<currency>SAR</currency>
<value>48.0815</value>
</price>
<price>
<currency>USD</currency>
<value>0.131730136986301</value>
</price>
</recurringPrice>
</recurring>
</finalPhase>
<plansAllowedInBundle>-1</plansAllowedInBundle>
</plan>
--------------------------XML--------------------------
The scenario i am looking for is, Suppose i subscribed this product today and it generated an invoice of $576(month july). Which is exactly what i want.Now i want the finalphase to start the billing date after my BCD(31-july) of the account and give me invoice of $48 in the next month BCD(31-august). But it generates the invoice this month which is JULY.

INITIALPHASE -> FIXEDTERM -> FIXEDPRICE(one off) ---> $576 to show up in july.
FINALPHASE -> EVERGREEN -> RECURRING -> $48 to show up in August

Thank you

stephane brossier

unread,
Jul 9, 2021, 7:12:07 PM7/9/21
to Junaid Soomro, Kill Bill users mailing-list
Your request is a mix of use case and solution, making it hard to understand and reply. Could you just describe with words, as precisely as possible -- no xml catalog-- what you want to achieve?


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/762b01fe-7b32-48b4-9af5-253f27e2965fn%40googlegroups.com.

stephane brossier

unread,
Jul 10, 2021, 2:56:47 PM7/10/21
to Junaid Soomro, Kill Bill users mailing-list
[+ mailing list]


Could you then define a Plan with 2 phases:
  • FIXEDTERM with a duration {unit=QUARTERLY, number=1}, price=40.66
  • EVERGREEN with a billingPeriod=MONTHLY, price=7.30
I did not try it out, but it seems this would address your use case.

Stéphane



On Sat, Jul 10, 2021 at 4:17 AM Junaid Soomro <js.d...@gmail.com> wrote:
Alright. I shall tell you my use case. 

ProductName:start bucks
monthly payment $10

1 year subscription makes this 10x12 = $122 total amount payable.
Now, the first three accumulated payments will be taken in the first month. 122/3 = 40.66 <-- this should be in the first month's invoice.
Now the remaining amount will be divided for the rest of the months 40.66-122 = 82.33 divided by 11(months) 80.33/11 =7.30 will be charged for each upcoming month..

I hope you understand.



Junaid Soomro

unread,
Jul 13, 2021, 2:45:38 AM7/13/21
to Kill Bill users mailing-list
This approach is good but the only obstacle here is. i want fixed price in my final evergreen phase and it should be recurring MONTHLY basis. Is there any way i can have recurring fixed price for the final evergreen phase. I cant find any syntax in the docs. 

stephane brossier

unread,
Jul 13, 2021, 9:17:56 PM7/13/21
to Junaid Soomro, Kill Bill users mailing-list
The whole point of  FIXED price is that it is applied only once v.s RECURRING which is applied on each period. So, you cannot have "a fixed price in my final evergreen phase and it should be recurring MONTHLY basis". 

Reply all
Reply to author
Forward
0 new messages