diff --git a/src/test/java/com/checkout/TestHelper.java b/src/test/java/com/checkout/TestHelper.java index b30e460e..2f3ebf9a 100644 --- a/src/test/java/com/checkout/TestHelper.java +++ b/src/test/java/com/checkout/TestHelper.java @@ -41,6 +41,7 @@ public static PaymentRequest createCardPayoutRequest() { public static PaymentRequest createCardPaymentRequest(Long amount) { CardSource cardSource = new CardSource(TestCardSource.VISA.getNumber(), TestCardSource.VISA.getExpiryMonth(), TestCardSource.VISA.getExpiryYear()); cardSource.setCvv(TestCardSource.VISA.getCvv()); + cardSource.setStored(false); CustomerRequest customer = new CustomerRequest(); customer.setEmail(generateRandomEmail()); diff --git a/src/test/java/com/checkout/payments/CardSourcePaymentsTests.java b/src/test/java/com/checkout/payments/CardSourcePaymentsTests.java index 5e8649ff..cee91cdd 100644 --- a/src/test/java/com/checkout/payments/CardSourcePaymentsTests.java +++ b/src/test/java/com/checkout/payments/CardSourcePaymentsTests.java @@ -29,7 +29,7 @@ public void can_request_non_3ds_card_payment() throws Exception { Assert.assertTrue(paymentResponse.getPayment().canCapture()); Assert.assertTrue(paymentResponse.getPayment().canVoid()); Assert.assertNotNull(paymentResponse.getPayment().getSource()); - Assert.assertFalse(paymentRequest.getSource().isStored()); + Assert.assertFalse(paymentRequest.getSource().getStored()); } @Test