cancel
Showing results for 
Search instead for 
Did you mean: 

ARB can be used for one time billing AND recurring billing?

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

eramgarden
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

5 REPLIES 5

Yes it can be use for one time billing, just set the totalOccurrences to 1.

RaynorC1emen7
Expert

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

 

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.

Thanks. Just to cofirm...I can have 2 different totalocurrances in ARB, correct?

No, you need to do two seperate ARB.

subscription sub = new subscription();

subscription sub2 = new subscription();