Bin e padrões para validação de cartão de crédito.
Bandeira | Começa com | Máximo de número | Máximo de número cvc |
---|---|---|---|
Visa | 4 | 13,16 | 3 |
Mastercard | 5 | 16 | 3 |
=> Booting Mongrel | |
=> Rails 2.3.3 application starting on http://0.0.0.0:3000 | |
/home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant Calculator (NameError) | |
from /home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' | |
from /home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' | |
from /home/usuario/rails/adriana/vendor/extensions/correios_shipping_calculator/app/models/sedex_calculator.rb:1 | |
from /home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' | |
from /home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load_file' | |
from /home/usuario/rails/adriana/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /home/usuario/rails/adriana/vendor/rails/activ |
class CreateImports < ActiveRecord::Migration | |
def self.up | |
create_table :imports do |t| | |
t.string :datatype | |
t.integer :processed, :default => 0 | |
t.string :csv_file_name | |
t.string :csv_content_type | |
t.integer :csv_file_size | |
t.timestamps | |
end |
2013-12-18T18:49:57+00:00 DEBUG (7): {"pagamentoWidget":{"referer":"http:\/\/magento.localhost\/","token":"R2T0O1A3Y1S2L1K8S1G6A4Q9D5L66319Z23040Q0A0A0R0O4I2N60497Q9V7","dadosPagamento":{"Forma":"CartaoCredito","Instituicao":"AmericanExpress","Parcelas":"5","Recebimento":"AVista","CartaoCredito":{"Numero":"0000000000000000","Expiracao":"6\/2017","CodigoSeguranca":"000","Portador":{"Nome":"aaaaaaaaaa","DataNascimento":"01\/06\/1981","Telefone":"4135270877","Identidade":"037.486.909-08"}}}}} | |
2013-12-18T18:50:02+00:00 DEBUG (7): ?({"Status":"EmAnalise","Codigo":0,"TaxaMoIP":"354.17","StatusPagamento":"Sucesso","Classificacao":{"Codigo":999,"Descricao":"Não suportado no ambiente Sandbox"},"CodigoMoIP":190845,"Mensagem":"Requisição processada com sucesso","TotalPago":"2699.99"}) |
<?php | |
// +----------------------------------------------------------------------+ | |
// | BoletoPhp - Versão Beta | | |
// +----------------------------------------------------------------------+ | |
// | Este arquivo está disponível sob a Licença GPL disponível pela Web | | |
// | em http://pt.wikipedia.org/wiki/GNU_General_Public_License | | |
// | Você deve ter recebido uma cópia da GNU Public License junto com | | |
// | esse pacote; se não, escreva para: | | |
// | | | |
// | Free Software Foundation, Inc. | |
-- | |
-- Magento CE database clean-up extended | |
-- | |
-- This is an extended clean-up which will clean search, import/export, reports, etc. | |
-- | |
-- @author Constantin Bejenaru <[email protected]> | |
-- @copyright Copyright (c) Constantin Bejenaru (http://frozenminds.com/) | |
-- @license http://www.opensource.org/licenses/mit-license.html MIT License | |
-- |
Recoverable Error: Object of class Mage_Core_Model_Store could not be converted to string in /var/www/mercadolivre/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2707 | |
#0 /var/www/mercadolivre/lib/Varien/Db/Adapter/Pdo/Mysql.php(2707): mageCoreErrorHandler(4096, 'Object of class...', '/var/www/mercad...', 2707, Array) | |
#1 /var/www/mercadolivre/lib/Varien/Data/Collection/Db.php(483): Varien_Db_Adapter_Pdo_Mysql->prepareSqlCondition('category.store_...', Object(Mage_Core_Model_Store)) | |
#2 /var/www/mercadolivre/app/code/local/Acaldeira/Mercadolivre/Model/Mysql4/Category/Collection.php(14): Varien_Data_Collection_Db->_getConditionSql('category.store_...', Object(Mage_Core_Model_Store)) | |
#3 /var/www/mercadolivre/app/code/local/Acaldeira/Mercadolivre/Block/Adminhtml/Category/Grid.php(24): Acaldeira_Mercadolivre_Model_Mysql4_Category_Collection->addFieldToFilter('category.store_...', Object(Mage_Core_Model_Store)) | |
#4 /var/www/mercadolivre/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(626): Acaldeira_Mercadolivre_Blo |
<?php | |
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' ); | |
function my_woocommerce_styles($styles){ | |
unset($styles['woocommerce-layout']); | |
unset($styles['woocommerce-smallscreen']); | |
$styles['woocommerce-layout'] = array( | |
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css', | |
'deps' => '', | |
'version' => '1.0.0', | |
'media' => 'all' |
odoo@ubuntu:~/bin$ cd /opt/odoo/ && bin/start_odoo_develop | |
2015-07-02 16:16:35,933 1114 INFO ? openerp: OpenERP version 7.0 | |
2015-07-02 16:16:35,943 1114 INFO ? openerp: addons paths: /opt/odoo/parts/odoo/openerp/addons,/opt/odoo/parts/odoo/addons,/opt/odoo/nfe,/opt/odoo/l10n_br_core,/opt/odoo/account-fiscal-rule,/opt/odoo/server-tools | |
2015-07-02 16:16:35,944 1114 INFO ? openerp: database hostname: localhost | |
2015-07-02 16:16:35,947 1114 INFO ? openerp: database port: 5432 | |
2015-07-02 16:16:35,949 1114 INFO ? openerp: database user: odoo | |
2015-07-02 16:16:39,860 1114 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.16` detected | |
2015-07-02 16:16:43,373 1114 CRITICAL ? openerp.modules.module: Couldn't load module web | |
2015-07-02 16:16:43,389 1114 CRITICAL ? openerp.modules.module: unsupported locale setting | |
2015-07-02 16:16:43,406 1114 ERROR ? openerp.service: Failed to load server-wide module `web`. |
#! /bin/bash | |
## PHP 7 Initial Compile ## | |
## Some help from the various places like these. ## | |
# http://www.zimuel.it/install-php-7/ | |
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu | |
## Setup Ubuntu 15.04/15.10 ## | |
# Other dependencies for PHP 7. Add any missing ones from configure script | |
# complaints, plus some LAMP needs too. |