/**
* @return void
* @throws \Payu\Exception\ValidationError
*/
public function validate()
{
parent::validate();
/**
* @var $object \Payu\Component\Order
*/
$object = $this->request->getOrder();
// Get currency from order instance
try {
static::filterAndValidateCurrencyCode($object->getCurrency());
} catch (\Exception $e) {
throw new ValidationError($e->getMessage());
}
}