Skip to content

Commit a96c071

Browse files
feat: add new properties and update tests for payments processing
- Added ‘StoreForFutureUse’ to RequestNetworkTokenSource. - Added ‘PanTypeProcessed’ and ‘CkoNetworkTokenAvailable’ to ProcessingData. - Updated BankAccountFieldFormattingTest to skip unavailable test. - Enhanced HostedPaymentsIntegrationTest with ‘DisplayName’ property. - Refined RequestApmPaymentsIntegrationTest to include validation of payment response.`
1 parent 91c2537 commit a96c071

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

src/CheckoutSdk/Payments/Request/Source/RequestNetworkTokenSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public RequestNetworkTokenSource() : base(PaymentSourceType.NetworkToken)
2121
public string Eci { get; set; }
2222

2323
public bool? Stored { get; set; }
24+
25+
public bool? StoreForFutureUse { get; set; }
2426

2527
public string Name { get; set; }
2628

src/CheckoutSdk/Payments/Response/ProcessingData.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@ public class ProcessingData
4646
public string MerchantCategoryCode { get; set; }
4747

4848
public string SchemeMerchantId { get; set; }
49+
50+
public PanProcessedType? PanTypeProcessed { get; set; }
51+
52+
public bool? CkoNetworkTokenAvailable { get; set; }
4953
}
5054
}

test/CheckoutSdkTest/Instruments/BankAccountFieldFormattingTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public BankAccountFieldFormattingTest() : base(PlatformType.DefaultOAuth)
1212
{
1313
}
1414

15-
[Fact]
15+
[Fact(Skip = "unavailable")]
1616
private async Task ShouldGetBankAccountFieldFormatting()
1717
{
1818
BankAccountFieldQuery query = new BankAccountFieldQuery

test/CheckoutSdkTest/Payments/Hosted/HostedPaymentsIntegrationTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ protected static HostedPaymentRequest CreateHostedPaymentRequest()
7070
Reference = "reference",
7171
Currency = Currency.GBP,
7272
Description = "Payment for Gold Necklace",
73+
DisplayName = "Gold Necklace",
7374
Customer = customer,
7475
Shipping = shippingDetails,
7576
Billing = billing,

test/CheckoutSdkTest/Payments/RequestApmPaymentsIntegrationTest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,9 @@ private async Task ShouldMakeKnetPayment()
378378
FailureUrl = "https://testing.checkout.com/failure"
379379
};
380380

381-
await CheckErrorItem(async () => await DefaultApi.PaymentsClient().RequestPayment(request),
382-
PayeeNotOnboarded);
381+
var paymentResponse = await DefaultApi.PaymentsClient().RequestPayment(request);
382+
paymentResponse.ShouldNotBeNull();
383+
383384
}
384385

385386
[Fact]

0 commit comments

Comments
 (0)