checkout / checkout-magento2-plugin

Checkout.com Magento 2 official extension
MIT License
32 stars 32 forks source link

Add payment_authentication_failed event #517

Open stephen-gilbert-cko opened 1 year ago

stephen-gilbert-cko commented 1 year ago

Add support for payment_authentication_failed webhook notification

kpitn commented 1 year ago

Hi,

Another related error about "payment_authentication_failed".

Our checkout.com magento 2 log file has many :

 ["Warning: Undefined array key \"payment_authentication_failed\" in /var/www/html/vendor/checkoutcom/magento2/Model/Service/PaymentErrorHandlerService.php on line 137"]

File PaymentErrorHandlerService.php is missing payment_authentication_failed

    const TRANSACTION_ERROR_LABEL = [
        'payment_declined'         => 'Failed payment authorization',
        'payment_capture_declined' => 'Failed payment capture',
        'payment_void_declined'    => 'Failed payment void',
        'payment_refund_declined'  => 'Failed payment refund',
        'payment_pending'          => 'Failed payment request',
    ];