Skip to content

Commit

Permalink
Add fields for 3DS authentication performed by a third party (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: Romero Silva <romero.silva@mercadolibre.com>
Co-authored-by: meliguilhermefernandes <guilherme.jfernandes@mercadolivre.com>
  • Loading branch information
3 people authored Jul 16, 2024
1 parent e0932a0 commit 278d583
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentAuthenticationRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using System;
namespace MercadoPago.Client.Payment
{
/// <summary>
/// Data used to exchange 3DS authentication information verified by a third party.
/// </summary>
public class PaymentAuthenticationRequest
{
/// <summary>
/// Type.
/// </summary>
public string Type { get; set; }

/// <summary>
/// Cryptogram.
/// </summary>
public string Cryptogram { get; set; }

/// <summary>
/// 3DS Server Trans ID.
/// </summary>
public string ThreeDsServerTransId { get; set; }

/// <summary>
/// ECI.
/// </summary>
public string Eci { get; set; }

/// <summary>
/// 3DS Trans ID.
/// </summary>
public string DsTransId { get; set; }

/// <summary>
/// ACS Trans ID.
/// </summary>
public string AcsTransId { get; set; }

/// <summary>
/// 3DS Version.
/// </summary>
public string ThreeDsVersion { get; set; }

/// <summary>
/// Authentication Status.
/// </summary>
public string AuthenticationStatus { get; set; }
}
}

5 changes: 5 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentDataRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ public class PaymentDataRequest
/// Payment rules.
/// </summary>
public PaymentRulesRequest Rules { get; set; }

/// <summary>
/// Authentication.
/// </summary>
public PaymentAuthenticationRequest authentication { get; set; }
}
}
5 changes: 5 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentMethodRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ public class PaymentMethodRequest
/// Payment data.
/// </summary>
public PaymentDataRequest Data { get; set; }

/// <summary>
/// Type.
/// </summary>
public string Type { get; set; }
}
}

0 comments on commit 278d583

Please sign in to comment.