Пример #1
0
        /// <summary>
        /// Cancels the subscription.
        /// </summary>
        /// <param name="subscriptionID">The subscription ID.</param>
        /// <returns></returns>
        public bool CancelSubscription(string subscriptionID) {
            var req = new ARBCancelSubscriptionRequest();

            req.subscriptionId = subscriptionID;
            //will throw if there are errors
            var response = (ARBCancelSubscriptionResponse)_gateway.Send(req);
            return true;
        }
Пример #2
0
 public AuthorizeNet.APICore.ARBCancelSubscriptionResponse CancelSubscription(long subscriptionId)
 {
     AuthorizeNet.APICore.ARBCancelSubscriptionRequest req = new AuthorizeNet.APICore.ARBCancelSubscriptionRequest();
     req.subscriptionId = subscriptionId.ToString();
     AuthorizeNet.HttpXmlUtility util = new AuthorizeNet.HttpXmlUtility(ServiceMode, MerchantAuthenticationType.name, MerchantAuthenticationType.transactionKey);
     return (AuthorizeNet.APICore.ARBCancelSubscriptionResponse)util.Send(req);
 }