diff --git a/src/main/java/uk/gov/pay/ledger/transaction/model/TransactionFactory.java b/src/main/java/uk/gov/pay/ledger/transaction/model/TransactionFactory.java index 322ed8f7a..00ee27d67 100644 --- a/src/main/java/uk/gov/pay/ledger/transaction/model/TransactionFactory.java +++ b/src/main/java/uk/gov/pay/ledger/transaction/model/TransactionFactory.java @@ -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); diff --git a/src/test/java/uk/gov/pay/ledger/transaction/model/TransactionFactoryTest.java b/src/test/java/uk/gov/pay/ledger/transaction/model/TransactionFactoryTest.java index 7cf938265..415f092f0 100644 --- a/src/test/java/uk/gov/pay/ledger/transaction/model/TransactionFactoryTest.java +++ b/src/test/java/uk/gov/pay/ledger/transaction/model/TransactionFactoryTest.java @@ -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 diff --git a/src/test/java/uk/gov/pay/ledger/util/fixture/TransactionFixture.java b/src/test/java/uk/gov/pay/ledger/util/fixture/TransactionFixture.java index 726bd8e5c..66cae18ad 100644 --- a/src/test/java/uk/gov/pay/ledger/util/fixture/TransactionFixture.java +++ b/src/test/java/uk/gov/pay/ledger/util/fixture/TransactionFixture.java @@ -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 -> {