Skip to content

Commit 35e823f

Browse files
authored
Add safe card info fields to CKO authorise and sale card events. (#438)
* Add safe card info fields to payment request event model. * Fixed comment typo.
1 parent 73bb2ce commit 35e823f

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

src/NoFrixion.MoneyMoov/Models/PaymentRequests/PaymentRequestEvent.cs

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ public class PaymentRequestEvent
4242

4343
public string? ErrorMessage { get; set; }
4444

45-
[System.Text.Json.Serialization.JsonIgnore]
46-
[Newtonsoft.Json.JsonIgnore]
45+
//[System.Text.Json.Serialization.JsonIgnore]
46+
//[Newtonsoft.Json.JsonIgnore]
47+
[Obsolete("Please don't use this field, it will be removed imminently.")]
4748
public string? RawResponse { get; set; }
4849

4950
[System.Text.Json.Serialization.JsonIgnore]
@@ -146,7 +147,7 @@ public class PaymentRequestEvent
146147
/// back to the URL that initiated the attempt in the case of a failure condition.
147148
/// </summary>
148149
public string? OriginUrl { get; set; }
149-
150+
150151
/// <summary>
151152
/// For settlement events (only relevant for non-card payments) this is the payin transaction that
152153
/// the payment request event was reconciled with.
@@ -168,6 +169,36 @@ public class PaymentRequestEvent
168169
/// </summary>
169170
public Guid? DrirectDebitMandateID { get; set; }
170171

172+
/// <summary>
173+
/// For card payment events this field holds the scheme of the payer's card, e.g. Visa, Mastercard, etc.
174+
/// </summary>
175+
public string? CardScheme { get; set; }
176+
177+
/// <summary>
178+
/// For card payment events this field holds the payer's card expiry year.
179+
/// </summary>
180+
public int? CardExpiryYear { get; set; }
181+
182+
/// <summary>
183+
/// For card payment events this field holds the payer's card expiry month.
184+
/// </summary>
185+
public int? CardExpiryMonth { get; set; }
186+
187+
/// <summary>
188+
/// For card payment events this field holds the payer's card last four digits.
189+
/// </summary>
190+
public string? CardLastFourDigits { get; set; }
191+
192+
/// <summary>
193+
/// For card payment events this field holds the payer's card issuer.
194+
/// </summary>
195+
public string? CardIssuer { get; set; }
196+
197+
/// <summary>
198+
/// For card payment events this field holds the payer's card issuer country of origin.
199+
/// </summary>
200+
public string? CardIssuerCountry { get; set; }
201+
171202
/// <summary>
172203
/// Gets the amount to display with the correct number of decimal places based on the currency type.
173204
/// </summary>

0 commit comments

Comments
 (0)