setInfoOn method

bool setInfoOn(
  1. CulqiCard _card
)

Implementation

bool setInfoOn(CulqiCard _card) {
  if(!mounted) return false;

  if(_card == null) return false;

  if(!_formKey.currentState.validate()) return false;

  _card.cardNumber = _cardNumber;
  _card.cvv = _cvv;
  _card.expirationMonth = _selectedMonth+1;
  _card.expirationYear = _years[_selectedYear];
  return true;
}