Hi,
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:
//arb request
var arbRequest = new ARBCreateSubscriptionRequest();
arbRequest.subscription.amount = 10;
arbRequest.subscription.amountSpecified = true;
//Schedule
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
05-30-2012 04:53 AM
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.
05-30-2012 04:46 PM