Each payment attempt generates a “pending payment” line at the bottom of the invoice. Is there a way to list only the latest payment attempt instead? That would save space on the invoice and avoid confusion on the customer’s side.
Whilst it would be possible with some custom development it is not something that EE currently has available.
The payment_list shortcode loops over all of the payments within the invoice outputting each payment within the transaction. To list only the last payment would require a custom shortcode for the messages system that pulled the last payment method and output the details (without looping over any of the others).
Another option could be to display the payment on the invoice once it has been successfully processed and ignore unsuccessful attempts. Information-wise, that would be much more relevant to the consumer.
Would users not find failed payment attempts relevant?
I checked into the code for the payment list and it looks like it was originally intended to only display approved payments but has since been changed. I’ll check with our developers as to why.
In any case I double checked the code for parsing the payment list and it turns out there is a filter available that can be used on the payments which allows you to return only approved payments.
I followed your advice and added the custom plugin. It does exactly what I was looking for, thanks a lot.
Best regards
Benoît
Viewing 5 reply threads
The support post ‘Multiple payment attempts generate multiple lines on invoice’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.