Inheritance: IyzipayResource
Exemple #1
0
        public static BasicBkmInitialize Create(CreateBasicBkmInitializeRequest request, Options options)
        {
            BasicBkmInitialize response = RestHttpClient.Create().Post <BasicBkmInitialize>(options.BaseUrl + "/payment/bkm/initialize/basic", request, options);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.decodeString(response.HtmlContent);
            }
            return(response);
        }
Exemple #2
0
        // Async
        public static async Task <BasicBkmInitialize> CreateAsync(CreateBasicBkmInitializeRequest request, Options options)
        {
            BasicBkmInitialize response = await RestHttpClient.Create().PostAsync <BasicBkmInitialize>(options.BaseUrl + "/payment/bkm/initialize/basic", GetHttpHeaders(request, options), request);

            if (response != null)
            {
                response.HtmlContent = DigestHelper.DecodeString(response.HtmlContent);
            }
            return(response);
        }