예제 #1
0
 public static CheckoutForm Retrieve(RetrieveCheckoutFormRequest request, Options options)
 {
     return RestHttpClient.Create().Post<CheckoutForm>(options.BaseUrl + "/payment/iyzipos/checkoutform/auth/ecom/detail", GetHttpHeaders(request, options), request);
 }
예제 #2
0
        public void Should_Retrieve_Checkout_Form_Result()
        {
            RetrieveCheckoutFormRequest request = new RetrieveCheckoutFormRequest();
            request.ConversationId = "123456789";
            request.Token = "token";

            CheckoutForm checkoutForm = CheckoutForm.Retrieve(request, options);

            PrintResponse<CheckoutForm>(checkoutForm);

            Assert.AreEqual(Status.SUCCESS.ToString(), checkoutForm.Status);
            Assert.AreEqual(Locale.TR.ToString(), checkoutForm.Locale);
            Assert.AreEqual("123456789", checkoutForm.ConversationId);
            Assert.IsNotNull(checkoutForm.SystemTime);
            Assert.IsNull(checkoutForm.ErrorCode);
            Assert.IsNull(checkoutForm.ErrorMessage);
            Assert.IsNull(checkoutForm.ErrorGroup);
        }