Plugin Directory

Changeset 2551538


Ignore:
Timestamp:
06/21/2021 04:52:59 PM (5 years ago)
Author:
mstonys
Message:

better error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php

    r2551494 r2551538  
    428428            }
    429429        } else {
     430            $error = __('Failed to validate MTN MoMo keys, make sure you supplied the right values below! Do not use Collection Widget Primary key!', $this->domain);
     431            if($this->last_api_error){
     432                $error .= " " . $this->last_api_error;
     433            }
     434            $settings->add_error($error);
    430435            return false;
    431436        }
Note: See TracChangeset for help on using the changeset viewer.