public void GatherCardDetails (CardViewModel cardViewModel)
		{
			string _cardMonth = cardMonth.ToString ();
			if (cardMonth < 10) {
				_cardMonth = "0" + _cardMonth;
			}
			cardViewModel.CardNumber = creditCardNum;
			cardViewModel.CV2 = ccv;
			cardViewModel.ExpireDate = _cardMonth + "/" + year;
			cardViewModel.CardType = Type;
		}
Beispiel #2
0
		public void GatherCardDetails (CardViewModel cardViewModel)
		{
			cardViewModel.PostCode = PostcodeTextField.Text;

			switch (selectedCountry) {
			case BillingCountryOptions.BillingCountryOptionUK:
                    cardViewModel.CountryCode = ISO3166CountryCodes.UK;
				break;
			case BillingCountryOptions.BillingCountryOptionUSA:
                cardViewModel.CountryCode = ISO3166CountryCodes.USA;
				break;
            case BillingCountryOptions.BillingCountryOptionCanada:
                cardViewModel.CountryCode = ISO3166CountryCodes.Canada;
                break;
            default:					
				break;
			}
		}
		CardViewModel GatherCardDetails ()
		{
			CardViewModel cardViewModel = new CardViewModel ();
			detailCell.GatherCardDetails (cardViewModel);


			if (JudoSDKManager.AVSEnabled) {
				avsCell.GatherCardDetails (cardViewModel);

			}

			if (detailCell.Type == CardType.MAESTRO) {
				maestroCell.GatherCardDetails (cardViewModel);

			}

			return cardViewModel;
		}
		public void GatherCardDetails (CardViewModel cardViewModel)
		{
		    cardViewModel.StartDate = StartDateTextField.Text;
			cardViewModel.IssueNumber = IssueNumberTextField.Text;
		}