Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fields for 3DS authentication performed by a third party #177

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; }
}
}
4 changes: 2 additions & 2 deletions src/MercadoPago/MercadoPago.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<SignAssembly>True</SignAssembly>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TargetFrameworks>net5.0;netstandard2.0;net461</TargetFrameworks>
<Version>2.3.6</Version>
<VersionPrefix>2.3.6</VersionPrefix>
<Version>2.3.7</Version>
<VersionPrefix>2.3.7</VersionPrefix>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
Expand Down
Loading