Ejemplo n.º 1
0
    public static function addPayPalCustomer($id_customer, $email)
    {
        if (!PayPal::getPayPalEmailByIdCustomer($id_customer)) {
            Db::getInstance()->Execute('
				INSERT INTO `' . _DB_PREFIX_ . 'paypal_customer` (`id_customer`, `paypal_email`)
				VALUES(' . (int) $id_customer . ', \'' . pSQL($email) . '\')');
            return Db::getInstance()->Insert_ID();
        }
        return false;
    }