private function isNotPaidOrder($customerId, $orderId) { $orders = PaymentCloud::getCustomersPaidOrders($customerId); if (!in_array($orderId, $orders)) { return true; } return false; }