<?php
if (!defined('_PS_VERSION_'))
	exit;
class Multisafepay extends MultisafepayAbstract
{
	public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = null, $transaction = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false, Shop $shop = null)
	{
		if ($this->active)
		{
			global $link;
			$link = new Link(); 
			parent::validateOrder((int)$id_cart, (int)$id_order_state, (float)$amountPaid, $paymentMethod, $message, $transaction, $currency_special, $dont_touch_amount, $secure_key, $shop ? new Shop((int)$shop->id) : null);

		}
	}
}