Jump to content

Authorize AIM Error


Recommended Posts

SOLVED: /classes/Validate.php was missing this:

public static function isAnything()
    {
        return true;
    }

It looks like it was replaced with CleAnything in Validate.php, which wasn't updated in OrderPayment.php. OrderPayment.php uses 'validate' => 'isAnything'

 

 

I'm getting an error right after getting a payment accepted response from Authorize.net. Here's the entire error:

 

Fatal error: Uncaught exception 'PrestaShopException' with message 'Validation function not found. isAnything' in /home/jorbor7/myelitevapor.com/ps/classes/ObjectModel.php:1046 Stack trace: #0 /home/jorbor7/myelitevapor.com/ps/classes/ObjectModel.php(906): ObjectModelCore->validateField('order_reference', 'HJEDJZXNK') #1 /home/jorbor7/myelitevapor.com/ps/classes/ObjectModel.php(246): ObjectModelCore->validateFields() #2 /home/jorbor7/myelitevapor.com/ps/classes/ObjectModel.php(487): ObjectModelCore->getFields() #3 /home/jorbor7/myelitevapor.com/ps/classes/order/OrderPayment.php(64): ObjectModelCore->add(true, false) #4 /home/jorbor7/myelitevapor.com/ps/classes/order/Order.php(1712): OrderPaymentCore->add(true) #5 /home/jorbor7/myelitevapor.com/ps/classes/PaymentModule.php(409): OrderCore->addOrderPayment(25.99, NULL, NULL) #6 /home/jorbor7/myelitevapor.com/ps/modules/authorizeaim/validation.php(124): PaymentModuleCore->validateOrder(7, '2', 25.99, 'Authorize.net A...', '(TESTMODE) This...', NULL, NULL, false, 'ad026605201 in /home/jorbor7/myelitevapor.com/ps/classes/ObjectModel.php on line 1046

Edited by jordanbork (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...