Reply
Member
Posts: 1
Registered: ‎04-24-2018

Help with Scenerio

I am trying to implement logic as such.

 

  • Bill a client today
  • In X Number of months bill them again

There is the payment schedule code I am using

 

paymentScheduleType schedule = new paymentScheduleType
{
interval = interval,
startDate = DateTime.Now.AddDays(1),//Bill today
totalOccurrences = 9999, // 9999 indicates no end date
trialOccurrences = FreeIntervals,
};

 

This does not appear to do what I am intending...anyone have any thoughts?

 

Authorize.Net Expert
Posts: 84
Registered: ‎11-16-2017

Re: Help with Scenerio

Can you send us the error message or the exact issue you are facing?

Is the subscription not getting billed for the interval that user is scheduled for?

Here is the ARB-Sample-Code. checkout.

 

-Bhavana

            interval.length = intervalLength;            
            interval.unit   = ARBSubscriptionUnitEnum.days;

            paymentScheduleType schedule = new paymentScheduleType
            {
                interval            = interval,
                startDate           = DateTime.Now.AddDays(1),      // start date should be tomorrow
                totalOccurrences    = 9999,                          // 999 indicates no end date
                trialOccurrences     = 0
            };