Skip to content

Commit

Permalink
PP-13439 use correct property value
Browse files Browse the repository at this point in the history
Use correct property value when adding exemption object to payments returned by ledger endpoints.
  • Loading branch information
SandorArpa committed Dec 27, 2024
1 parent e38fd2c commit 4c86833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private Transaction createPayment(TransactionEntity entity) {
entity.getPayoutEntity().map(payoutEntity -> payoutEntity.getPaidOutDate()).orElse(null)
);

String exemption3ds = safeGetAsString(transactionDetails, "exemption_3ds");
String exemption3ds = safeGetAsString(transactionDetails, "exemption3ds");
String exemption3dsRequested = safeGetAsString(transactionDetails, "exemption_3ds_requested");

Exemption exemption = createExemption(exemption3ds, exemption3dsRequested);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void buildFullTransactionDetails() {
fullTransactionDetails.addProperty("authorisation_mode", "moto_api");
fullTransactionDetails.addProperty("disputed", true);
fullTransactionDetails.addProperty("can_retry", false);
fullTransactionDetails.addProperty("exemption_3ds", exemption3ds);
fullTransactionDetails.addProperty("exemption3ds", exemption3ds);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private JsonObject getTransactionDetail() {
transactionDetails.addProperty("exemption_3ds_requested", exemption3dsRequested.name());
}
if(exemption3ds != null) {
transactionDetails.addProperty("exemption_3ds", exemption3ds.name());
transactionDetails.addProperty("exemption3ds", exemption3ds.name());
}
Optional.ofNullable(version3ds).ifPresent(
version -> {
Expand Down

0 comments on commit 4c86833

Please sign in to comment.