Пример #1
0
        /// <summary>
        /// Tokenizes a Credit Card Number to be used with Purchase(amount, token, cvv, reference, customer_ip)
        /// </summary>
        /// <param name="card_holder">The card holders name</param>
        /// <param name="number">The card number</param>
        /// <param name="expiry">The card expiry date</param>
        /// <param name="cvv">The card CVV</param>
        /// <returns></returns>
        public static Response <CreditCard> Create(string card_holder, string number, DateTime expiry, string cvv)
        {
            var req = new Requests.CreditCard {
                CardHolder   = card_holder,
                CardNumber   = number,
                ExpiryDate   = expiry,
                SecurityCode = cvv,
                TestMode     = Gateway.TestMode
            };

            return(Gateway.Post <CreditCard>("credit_cards.json", req));
        }
Пример #2
0
        /// <summary>
        /// Tokenizes a Credit Card Number to be used with Purchase(amount, token, cvv, reference, customer_ip)
        /// </summary>
        /// <param name="card_holder">The card holders name</param>
        /// <param name="number">The card number</param>
        /// <param name="expiry">The card expiry date</param>
        /// <param name="cvv">The card CVV</param>
        /// <returns></returns>
		public static Response<CreditCard> Create(string card_holder, string number, DateTime expiry, string cvv)
        {
			var req = new Requests.CreditCard {
				CardHolder = card_holder,
				CardNumber = number,
				ExpiryDate = expiry,
				SecurityCode = cvv,
				TestMode = Gateway.TestMode
			};

			return Gateway.Post<CreditCard>("credit_cards.json", req);
        }