cancel
Showing results for 
Search instead for 
Did you mean: 

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?

 

1 REPLY 1

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
            };
bhav
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert