From 39d80bbb1d2caf86631ea03a6fcf96e150bcb0b4 Mon Sep 17 00:00:00 2001 From: Emre INAL Date: Mon, 2 Oct 2023 22:18:22 +0300 Subject: [PATCH] Adds paymentId to 3DS init and GarantiPay init --- Craftgate/Response/InitGarantiPayPaymentResponse.cs | 1 + Craftgate/Response/InitThreeDSPaymentResponse.cs | 1 + Samples/PaymentSample.cs | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Craftgate/Response/InitGarantiPayPaymentResponse.cs b/Craftgate/Response/InitGarantiPayPaymentResponse.cs index 01ee2f3..f9d7fc6 100644 --- a/Craftgate/Response/InitGarantiPayPaymentResponse.cs +++ b/Craftgate/Response/InitGarantiPayPaymentResponse.cs @@ -6,6 +6,7 @@ namespace Craftgate.Response public class InitGarantiPayPaymentResponse { public string HtmlContent { get; set; } + public long PaymentId { get; set; } public string GetDecodedHtmlContent() { diff --git a/Craftgate/Response/InitThreeDSPaymentResponse.cs b/Craftgate/Response/InitThreeDSPaymentResponse.cs index 2cfabe4..ce330e2 100644 --- a/Craftgate/Response/InitThreeDSPaymentResponse.cs +++ b/Craftgate/Response/InitThreeDSPaymentResponse.cs @@ -6,6 +6,7 @@ namespace Craftgate.Response public class InitThreeDSPaymentResponse { public string HtmlContent { get; set; } + public long PaymentId { get; set; } public string GetDecodedHtmlContent() { diff --git a/Samples/PaymentSample.cs b/Samples/PaymentSample.cs index 43df6c3..5ca053e 100644 --- a/Samples/PaymentSample.cs +++ b/Samples/PaymentSample.cs @@ -537,6 +537,7 @@ public void Init_3DS_Payment() Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test] @@ -593,6 +594,7 @@ public void Init_3DS_Marketplace_Payment() Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test] @@ -645,6 +647,7 @@ public void Init_3DS_Payment_And_Store_Card() Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test] @@ -692,6 +695,7 @@ public void Init_3DS_Payment_Using_Stored_Card() Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test] @@ -798,6 +802,7 @@ public void Init_3DS_Deposit_Payment() Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test] @@ -905,9 +910,9 @@ public void Init_GarantiPay_Payment() var response = _craftgateClient.Payment().InitGarantiPayPayment(request); Assert.NotNull(response); - Assert.NotNull(response); Assert.NotNull(response.HtmlContent); Assert.NotNull(response.GetDecodedHtmlContent()); + Assert.NotNull(response.PaymentId); } [Test]