/// <summary>
        /// Updates the subscription.
        /// </summary>
        /// <param name="subscription">The subscription to update. Can't change billing intervals however.</param>
        /// <returns></returns>
        public bool UpdateSubscription(ISubscriptionRequest subscription) {
            var sub = subscription.ToUpdateableAPI();
            var req = new ARBUpdateSubscriptionRequest();
            req.subscription = sub;
            req.subscriptionId = subscription.SubscriptionID;
            var response = (ARBUpdateSubscriptionResponse)_gateway.Send(req);
            return true;

        }
Example #2
0
 public AuthorizeNet.APICore.ARBUpdateSubscriptionResponse UpdateARBSubscription(long subscriptionId, AuthorizeNet.APICore.ARBSubscriptionType subscription)
 {
     AuthorizeNet.APICore.ARBUpdateSubscriptionRequest req = new AuthorizeNet.APICore.ARBUpdateSubscriptionRequest();
     req.subscriptionId = subscriptionId.ToString();
     req.subscription = subscription;
     AuthorizeNet.HttpXmlUtility util = new AuthorizeNet.HttpXmlUtility(ServiceMode, MerchantAuthenticationType.name, MerchantAuthenticationType.transactionKey);
     return (AuthorizeNet.APICore.ARBUpdateSubscriptionResponse)util.Send(req);
 }