public static BasicThreedsInitialize Create(CreateBasicPaymentRequest request, Options options)
        {
            BasicThreedsInitialize response = RestHttpClient.Create().Post <BasicThreedsInitialize>(options.BaseUrl + "/payment/3dsecure/initialize/basic", GetHttpHeaders(request, options), request);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent);
            }
            return(response);
        }
Exemplo n.º 2
0
        public static async Task <BasicThreedsInitialize> CreateAsync(CreateBasicPaymentRequest request, Options options)
        {
            BasicThreedsInitialize response = await RestHttpClient.Instance.PostAsync <BasicThreedsInitialize>(options.BaseUrl + BasicThreedsInitializeUrl, GetHttpHeaders(request, options), request);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent);
            }
            return(response);
        }
        // Async
        public static async Task <BasicThreedsInitializePreAuth> CreateAsync(CreateBasicPaymentRequest request, Options options)
        {
            BasicThreedsInitializePreAuth response = await RestHttpClient.Create().PostAsync <BasicThreedsInitializePreAuth>(options.BaseUrl + "/payment/3dsecure/initialize/preauth/basic", GetHttpHeaders(request, options), request);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent);
            }
            return(response);
        }
        public static BasicThreedsInitializePreAuth Create(CreateBasicPaymentRequest request, Options options)
        {
            BasicThreedsInitializePreAuth response = RestHttpClient.Instance.Post <BasicThreedsInitializePreAuth>(options.BaseUrl + BasicThreedsInitializePreAuthUrl, GetHttpHeaders(request, options), request);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent);
            }
            return(response);
        }
 public static BasicPaymentPreAuth Create(CreateBasicPaymentRequest request, Options options)
 {
     return(RestHttpClient.Create().Post <BasicPaymentPreAuth>(options.BaseUrl + "/payment/preauth/basic", request, options));
 }
Exemplo n.º 6
0
 // sync
 public static BasicPayment Create(CreateBasicPaymentRequest request, Options options)
 {
     return(RestHttpClient.Create().Post <BasicPayment>(options.BaseUrl + "/payment/auth/basic", GetHttpHeaders(request, options), request));
 }
Exemplo n.º 7
0
 // Async
 public static async Task <BasicPayment> CreateAsync(CreateBasicPaymentRequest request, Options options)
 {
     return(await RestHttpClient.Create().PostAsync <BasicPayment>(options.BaseUrl + "/payment/auth/basic", GetHttpHeaders(request, options), request));
 }
Exemplo n.º 8
0
 public static BasicPaymentPreAuth Create(CreateBasicPaymentRequest request, Options options)
 {
     return(RestHttpClient.Instance.Post <BasicPaymentPreAuth>(options.BaseUrl + BasicPaymentPreAuthUrl, GetHttpHeaders(request, options), request));
 }
Exemplo n.º 9
0
 public static async Task <BasicPaymentPreAuth> CreateAsync(CreateBasicPaymentRequest request, Options options)
 {
     return(await RestHttpClient.Instance.PostAsync <BasicPaymentPreAuth>(options.BaseUrl + BasicPaymentPreAuthUrl, GetHttpHeaders(request, options), request));
 }