Reply
Member
Posts: 6
Registered: ‎08-12-2019

Recurring with Itemized transaction

Hi,

 

Is it possible to send the Item details in the recurring transaction?

FYI - we are using accept.js

 

Below is how we make the recurring call

 

ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
//All login details 
};

 

paymentScheduleTypeInterval interval = new paymentScheduleTypeInterval();

interval.length = 1; 
interval.unit = "monthly";

 

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

customerProfileIdType customerProfile = new customerProfileIdType()
{
customerProfileId = CustomerProfileId
,customerPaymentProfileId = CustomerPaymentProfileId
,customerAddressId = CustomerShippingAddressId
};

 

ARBSubscriptionType subscriptionType = new ARBSubscriptionType()
{
amount = Viewmodel.Amount,
paymentSchedule = schedule,
profile = customerProfile
};

 

var request = new ARBCreateSubscriptionRequest { subscription = subscriptionType };

var controller = new ARBCreateSubscriptionController(request); 
controller.Execute(); //finally we execute.

 

Plesae guide us.

 

Thanks

Karthik.K

 

 

Highlighted
Member
Posts: 1
Registered: ‎09-27-2019

Re: Recurring with Itemized transaction


@kkantharaj wrote:

Hi,

 

Is it possible to send the Item details in the recurring transaction?

FYI - we are using accept.js

 

Below is how we make the recurring call

 

ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
//All login details 
};

 

paymentScheduleTypeInterval interval = new paymentScheduleTypeInterval();

interval.length = 1; 
interval.unit = "monthly";

 

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

customerProfileIdType customerProfile = new customerProfileIdType()
{
customerProfileId = CustomerProfileId
,customerPaymentProfileId = CustomerPaymentProfileId talktowendys
,customerAddressId = CustomerShippingAddressId
};

 

ARBSubscriptionType subscriptionType = new ARBSubscriptionType()
{
amount = Viewmodel.Amount,
paymentSchedule = schedule,
profile = customerProfile
};

 

var request = new ARBCreateSubscriptionRequest { subscription = subscriptionType };

var controller = new ARBCreateSubscriptionController(request); 
controller.Execute(); //finally we execute.

 

Plesae guide us.

 

Thanks

Karthik.K

 

 


Yes, you can do all things. This is perfect JS.