   if @get('order.type') != 'stripe'
     return value
 
-  card = utils.card.cardFromNumber value
+  card = card.cardFromNumber value
   throw new Error('Enter a valid card number') unless card
 
   number = value.replace(/\D/g, '')
   length = number.length
 
   throw new Error('Enter a valid card number') unless /^\d+$/.test(number)
-  throw new Error('Enter a valid card number') unless length in card.length and (card.luhn is false or utils.card.luhnCheck(number))
+  throw new Error('Enter a valid card number') unless length in card.length and (card.luhn is false or luhnCheck(number))
 
   value
 

import { utils } from 'el-controls'
import { requiresPostalCode }        from '../utils/country'

emailRe = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/


  if @('order.type') != 'stripe'
    return value

  card = cardFromNumber(@get 'payment.account.number')
  cvc_ = value.trim()

  throw new Error('Enter a valid cvc') unless /^\d+$/.test(cvc_)
