Skip to content

Commit

Permalink
Adds paymentId to 3DS init and GarantiPay init
Browse files Browse the repository at this point in the history
  • Loading branch information
reywyn committed Oct 2, 2023
1 parent 44b6bc2 commit 39d80bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Craftgate/Response/InitGarantiPayPaymentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Craftgate.Response
public class InitGarantiPayPaymentResponse
{
public string HtmlContent { get; set; }
public long PaymentId { get; set; }

public string GetDecodedHtmlContent()
{
Expand Down
1 change: 1 addition & 0 deletions Craftgate/Response/InitThreeDSPaymentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Craftgate.Response
public class InitThreeDSPaymentResponse
{
public string HtmlContent { get; set; }
public long PaymentId { get; set; }

public string GetDecodedHtmlContent()
{
Expand Down
7 changes: 6 additions & 1 deletion Samples/PaymentSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 39d80bb

Please sign in to comment.