예제 #1
0
		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;
		}
예제 #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;
		}
예제 #4
0
		public void GatherCardDetails (CardViewModel cardViewModel)
		{
		    cardViewModel.StartDate = StartDateTextField.Text;
			cardViewModel.IssueNumber = IssueNumberTextField.Text;
		}