Skip to content

Commit 996b018

Browse files
Add network token destination
1 parent e2e5527 commit 996b018

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/CheckoutSdk/Payments/PaymentDestinationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ public enum PaymentDestinationType
88
[EnumMember(Value = "card")] Card,
99
[EnumMember(Value = "id")] Id,
1010
[EnumMember(Value = "token")] Token,
11+
[EnumMember(Value = "network_token")] Networktoken
1112
}
1213
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using Checkout.Payments.Request.Source;
2+
3+
namespace Checkout.Payments.Request.Destination
4+
{
5+
public class PaymentRequestNetworkTokenDestination : PaymentRequestDestination
6+
{
7+
public PaymentRequestNetworkTokenDestination() : base(PaymentDestinationType.Networktoken)
8+
{
9+
}
10+
11+
public string Token { get; set; }
12+
13+
public int? ExpiryMonth { get; set; }
14+
15+
public int? ExpiryYear { get; set; }
16+
17+
public NetworkTokenType TokenType { get; set; }
18+
19+
public string Cryptogram { get; set; }
20+
21+
public string Eci { get; set; }
22+
23+
}
24+
}

0 commit comments

Comments
 (0)