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