I sent regular request with my test account and transaction is ok.
Now I'm trying to do the same with ARB request but "payment" object expecting "payment type" object and NOT payment with all credit card information…
Also, how can I send the request? It cannot be sent via regular gateway and I couldn’t find ARBGateway…
Here is my code:
var arbRequest = new ARBCreateSubscriptionRequest();
arbRequest.subscription.amount = 10;
arbRequest.subscription.amountSpecified = true;
var psi = new paymentScheduleTypeInterval();
psi.length = 12;
psi.unit = ARBSubscriptionUnitEnum.months;
arbRequest.subscription.paymentSchedule.interval = psi;
arbRequest.subscription.payment = .....?????? //expecting payment type.....
thanks in advance
There is SubscriptionGateway
and the SubscriptionRequest where you can set subscription info and credit card info.
Download the source and you can see what it is doing. There are 2 zip, left is source, right is binary.