I have ARB working based on the sample example I found on this site. We have the following and both work
1. Recurring billing
2. Free trial
We want a one time billing as well. Is this doable with ARB? if so, what parameters do I need to set?
Thanks
Solved! Go to Solution.
01-07-2013 11:47 AM
You can either do a seperate ARB with totalOccurance of 1. So it would be A)An ARB with totalOccurance of 999 and trialOccurrences of 1. Then B) an ARB with totalOccurance of 1.
Or use AIM for the one time billing.
01-07-2013 12:30 PM - edited 01-07-2013 12:31 PM
Yes it can be use for one time billing, just set the totalOccurrences to 1.
01-07-2013 11:58 AM
Thanks but if I set totalOccurances to 1, what would happen to the recurring billing portion of it? So this is what I have:
I have recurring billing
I have free trial
I want to have a one time billing as well.
This is the code I have now. I have a recurring billing and tiral period. Where does the One Time billing go?
// recurring billing section sub.paymentSchedule = newPaymentScheduleType(); sub.paymentSchedule.startDate = DateTime.Now.Date; sub.paymentSchedule.startDateSpecified = true; sub.paymentSchedule.totalOccurrences = 999; sub.paymentSchedule.totalOccurrencesSpecified = true; sub.amount = decimal.Parse(price); sub.amountSpecified = true; //******* trial period sub.trialAmount = 0.0M; sub.trialAmountSpecified = true; sub.paymentSchedule.trialOccurrences = 1; //-- only allow one free trial sub.paymentSchedule.trialOccurrencesSpecified = true; //******* end of trial period
01-07-2013 12:12 PM
You can either do a seperate ARB with totalOccurance of 1. So it would be A)An ARB with totalOccurance of 999 and trialOccurrences of 1. Then B) an ARB with totalOccurance of 1.
Or use AIM for the one time billing.
01-07-2013 12:30 PM - edited 01-07-2013 12:31 PM
Thanks. Just to cofirm...I can have 2 different totalocurrances in ARB, correct?
01-07-2013 01:08 PM
No, you need to do two seperate ARB.
subscription sub = new subscription();
subscription sub2 = new subscription();
01-07-2013 01:38 PM