Example #1
0
        public HttpStatusCode UpdateRecurrentPaymentNextPaymentDate(Guid recurrentId, MerchantAuthentication merchantAuthentication, DateTime nextPaymentDate)
        {
            var restRequest = new RestRequest(@"RecurrentPayment/{recurrentId}/NextPaymentDate", Method.PUT)
            {
                RequestFormat = DataFormat.Json
            };

            AddHeaders(restRequest, merchantAuthentication);

            restRequest.AddUrlSegment("recurrentId", recurrentId.ToString());

            restRequest.AddBody(nextPaymentDate);

            var response = RestClient.Execute <HttpStatusCode>(restRequest);

            return(response.StatusCode);
        }
Example #2
0
 public FraudManagementClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount)
 {
 }
 public RecurringBillingClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount)
 {
 }
Example #4
0
 private static void AddHeaders(IRestRequest request, MerchantAuthentication merchantAuthentication)
 {
     request.AddHeader("Content-Type", "application/json");
     request.AddHeader("MerchantId", merchantAuthentication.MerchantId.ToString());
     request.AddHeader("MerchantKey", merchantAuthentication.MerchantKey);
 }
 public CustomerProfileClient(MerchantAuthentication merchantAuthentication, bool isTestMode, int retryCount = 3) : base(merchantAuthentication, isTestMode, retryCount)
 {
 }