@Override public Boolean call() throws Exception { final Payment payment = getPaymentForInvoice(invoice.getId()); return payment.getPaymentStatus() == PaymentStatus.SUCCESS; } });
public PaymentJson(final Payment payment, final String bundleExternalKey, final List<RefundJson> refunds, final List<ChargebackJson> chargebacks, @Nullable final List<AuditLog> auditLogs) { this(payment.getAmount(), payment.getPaidAmount(), payment.getAccountId().toString(), payment.getInvoiceId().toString(), payment.getId().toString(), payment.getPaymentNumber().toString(), payment.getPaymentMethodId().toString(), payment.getEffectiveDate(), payment.getEffectiveDate(), payment.getAttempts().size(), payment.getCurrency().toString(), payment.getPaymentStatus().toString(), payment.getAttempts().get(payment.getAttempts().size() - 1).getGatewayErrorCode(), payment.getAttempts().get(payment.getAttempts().size() - 1).getGatewayErrorMsg(), bundleExternalKey, refunds, chargebacks, toAuditLogJson(auditLogs)); }
bipDao.invoicePaymentPosted(paymentInfo.getAccountId(), paymentInfo.getId(), paymentInfo.getPaymentStatus().toString(), internalCallContext);
Assert.assertEquals(payment.getPaymentStatus(), PaymentStatus.PAYMENT_FAILURE_ABORTED);
assertTrue(paymentInfo.getAmount().compareTo(expectedAmount.setScale(2, RoundingMode.HALF_EVEN)) == 0); assertNotNull(paymentInfo.getPaymentNumber()); assertEquals(paymentInfo.getPaymentStatus(), PaymentStatus.SUCCESS); assertEquals(paymentInfo.getAttempts().size(), 1); assertEquals(paymentInfo.getInvoiceId(), invoice.getId());
assertEquals(payment.getPaymentStatus(), PaymentStatus.SUCCESS); } else { if (failureType == FailureType.PAYMENT_FAILURE) { assertEquals(cur.getPaymentStatus(), PaymentStatus.PAYMENT_FAILURE_ABORTED); assertEquals(payment.getPaymentStatus(), PaymentStatus.PAYMENT_FAILURE_ABORTED); } else { assertEquals(cur.getPaymentStatus(), PaymentStatus.PLUGIN_FAILURE_ABORTED); assertEquals(payment.getPaymentStatus(), PaymentStatus.PLUGIN_FAILURE_ABORTED);
"Electronic", paymentMethod == null ? null : paymentMethod.getPluginName(), payment.getPaymentStatus().toString(), payment.getAmount(), updatedDate,
lastPaymentStatus = cur.getPaymentStatus().toString();