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); }
// Async public static async Task <BkmInitialize> CreateAsync(CreateBkmInitializeRequest request, Options options) { BkmInitialize response = await RestHttpClient.Create().PostAsync <BkmInitialize>(options.BaseUrl + "/payment/bkm/initialize", GetHttpHeaders(request, options), request); if (response != null) { response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent); } return(response); }
public static async Task <ThreedsInitialize> CreateAsync(CreatePaymentRequest request, Options options) { ThreedsInitialize response = await RestHttpClient.Instance.PostAsync <ThreedsInitialize>(options.BaseUrl + ThreedsInitializeUrl, GetHttpHeaders(request, options), request); if (response != null) { response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent); } return(response); }
public static BkmInitialize Create(CreateBkmInitializeRequest request, Options options) { BkmInitialize response = RestHttpClient.Instance.Post <BkmInitialize>(options.BaseUrl + BkmInitializeUrl, GetHttpHeaders(request, options), request); if (response != null) { response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent); } return(response); }
// Async public static async Task <ThreedsInitializePreAuth> CreateAsync(CreatePaymentRequest request, Options options) { ThreedsInitializePreAuth response = await RestHttpClient.Create().PostAsync <ThreedsInitializePreAuth>(options.BaseUrl + "/payment/3dsecure/initialize/preauth", GetHttpHeaders(request, options), request); if (response != null) { response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent); } return(response); }
public static ThreedsInitializePreAuth Create(CreatePaymentRequest request, Options options) { ThreedsInitializePreAuth response = RestHttpClient.Instance.Post <ThreedsInitializePreAuth>(options.BaseUrl + ThreedsInitializePreAuthUrl, GetHttpHeaders(request, options), request); if (response != null) { response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent); } return(response); }