Reply
Contributor
Posts: 22
Registered: ‎07-20-2012
Accepted Solution

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


Accepted Solutions
Solution
Accepted by topic author eramgarden
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

[ Edited ]

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


All Replies
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

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

Contributor
Posts: 22
Registered: ‎07-20-2012

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

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

 

Solution
Accepted by topic author eramgarden
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

[ Edited ]

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.

Contributor
Posts: 22
Registered: ‎07-20-2012

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

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

Expert
Posts: 4,525
Registered: ‎03-08-2010

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

No, you need to do two seperate ARB.

subscription sub = new subscription();

subscription sub2 = new subscription();