public void Should_Create_Threeds_Payment() { CreateThreedsPaymentRequest request = new CreateThreedsPaymentRequest(); request.Locale = Locale.TR.ToString(); request.ConversationId = "123456789"; request.PaymentId = "1"; request.ConversationData = "conversation data"; ThreedsPayment threedsPayment = ThreedsPayment.Create(request, options); PrintResponse<ThreedsPayment>(threedsPayment); Assert.AreEqual(Status.SUCCESS.ToString(), threedsPayment.Status); Assert.AreEqual(Locale.TR.ToString(), threedsPayment.Locale); Assert.AreEqual("123456789", threedsPayment.ConversationId); Assert.IsNotNull(threedsPayment.SystemTime); Assert.IsNull(threedsPayment.ErrorCode); Assert.IsNull(threedsPayment.ErrorMessage); Assert.IsNull(threedsPayment.ErrorGroup); }
public static BasicThreedsPayment Create(CreateThreedsPaymentRequest request, Options options) { return RestHttpClient.Create().Post<BasicThreedsPayment>(options.BaseUrl + "/payment/3dsecure/auth/basic", GetHttpHeaders(request, options), request); }