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); }
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); }