Hello ! i've this portion of code in a file:
validation.php
$paypal->validateOrder($_POST['custom'], _PS_OS_PAYMENT_, $price, $paypal->displayName, $paypal->getL('transaction').$_POST['txn_id']);
That function is declared in another file
PaymentModule.php
public function validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method = 'Unknown',
$message = null, $extra_vars = array(), $currency_special = null, $dont_touch_amount = false,
$secure_key = false, Shop $shop = null)
{CONTENT FUNCTION}
I want that $paypal->validateOrder calls another file, for example PaymentModuleMod.php that will contains the same function little modified.
in which way can i do this ? and for just curiosity, in which way the system KNOWS that validateOrder() is in PaymentModule.php ? is that $paypal-> that specify this ?
Thanks, i'm trying to modify some Prestashop's modules 😉 Thanks to ALL!!
p.s. i tried to integrate the function directly in the validation.php and i also tried to replace the VALUES, but doesn't work 'cause i wrong something :-/