awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
864 stars 475 forks source link

Make Payment Gateway errors have a relation to the payment #6291

Open mintplugins opened 6 years ago

mintplugins commented 6 years ago

Payment Gateway errors live under "Reports" > "Payment Gateway Errors", but don't really have any context telling us which payment they belong to.

I feel like we should attach the Payment ID to the error in some way in edd_record_gateway_error()

mintplugins commented 6 years ago

Ideally, I think we would also show a link to the related errors on the Payment Record screen

cklosowski commented 6 years ago

For reference, this will only affect payments that are created with Gateways that create a payment before sending to the Gateway. Gateways like Stripe could produce an error prior to an EDD Payment being generated, therefore not allowing us a canonical payment id to link the gateway error to.