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 |
| var mongoObjectId = function () { | |
| var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
| return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
| return (Math.random() * 16 | 0).toString(16); | |
| }).toLowerCase(); | |
| }; |
| 'use strict'; | |
| const internals = {}; | |
| exports.errors = { | |
| root: 'value', | |
| key: '"{{!key}}" ', | |
| messages: { | |
| wrapArrays: true | |
| }, |
| //https://www.carbondesignsystem.com/components/button/code | |
| import styled from 'styled-components' | |
| const COLORS = { | |
| primary: '#fff', | |
| secondary: '#3d70b2', | |
| tertiary: '#5a6872', | |
| ghost: '#3d70b2', | |
| danger: '#e0182d', |