Unsuccessful auto-bills are marked as completed

Recurring invoice generated an invoice, tried to auto-bill (PayPal gateway) here is what happened:

No money on the PayPal account.

Here is the invoice that was generated from recurring invoice:

Here is the payment that was created for the invoice:

Here’s what my customer reads in his system:

Translation: Card user authentication failed. The card user could not be authenticated. Please try again. If the problem persists, please contact our customer service.

I understand that the card issue is something my customer has to check on, but why is there a completed payment in my system? How can I trust the system?

Hi,

@david any ideas?

Which version of Invoice Ninja are you on?

Was this with a payment method that was stored on file for the customer? (ie with an existing payment method) or was this their first purchase?

Also, what type of payment was this:

PayPal
Payment Standard Credit/debit card
Payment Advanced Credit Card

5.10.4

The payment method was stored and it was (should have been) probably the 20th payment from that customer.

Credit card. How do I find out if it’s the Advanced Credit Card or Standard Credit Card method?

We only store tokens from the Advanced Credit Card PayPal implementation.

What do your logs say in PayPal? From memory, there are some Payments (in EU zone) where you need to confirm the payment itself within PayPal? So it will appear as completed from ourside, but then another completion confirmation is required from the UI.

If you navigate to PayPal, and view the logs for this OrderID / transaction reference there may be further information on this. Feel free to DM me direct.

It looks like the system is mistakenly marking unsuccessful auto-bills as completed, which is definitely a concerning issue. This could be a bug or misconfiguration in how the payment gateway handles failed transactions. Ideally, the system should mark such payments as “failed” or “pending” instead of “completed.” To resolve this, check the payment gateway logs for more detailed error messages and consider adjusting the payment processing settings to ensure failed transactions are correctly handled. It might also be helpful to reach out to the support team for your payment gateway to investigate why the status is being marked incorrectly.