예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="amount"></param>
        /// <param name="currency"></param>
        /// <param name="installments">Numero de Parcelas</param>
        /// <param name="capture"></param>
        /// <param name="softDescriptor"></param>
        /// <param name="creditCard"></param>
        /// <param name="paymentType">Tipo do pagamento (Cartão, Boleto, Transferência)</param>
        /// <param name="country"></param>
        /// <param name="returnUrl">obrigatório quando é cartão de débito e transferência eletronica</param>
        public Payment(decimal amount, Currency currency, int installments, bool capture, string softDescriptor, Card card, PaymentType paymentType = PaymentType.CreditCard, string country = Cielo.Country.BRA, string returnUrl = "", RecurrentPayment recurrentPayment = null, Wallet wallet = null)
        {
            SetPaymentType(paymentType);
            SetAmount(amount);
            SetCurrency(currency);
            this.Installments     = installments;
            this.Capture          = capture;
            this.SoftDescriptor   = softDescriptor;
            this.RecurrentPayment = recurrentPayment;

            SetCard(card, paymentType);

            this.Country   = country;
            this.ReturnUrl = returnUrl;
            this.Wallet    = wallet;
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="amount"></param>
        /// <param name="currency"></param>
        /// <param name="installments">Numero de Parcelas</param>
        /// <param name="softDescriptor"></param>
        /// <param name="card"></param>
        /// <param name="recurrentPayment"></param>
        /// <param name="country"></param>
        public Payment(decimal amount, Currency currency, int installments, string softDescriptor, Card card, RecurrentPayment recurrentPayment, string country = Cielo.Country.BRA)
        {
            SetPaymentType(PaymentType.CreditCard);
            SetAmount(amount);
            SetCurrency(currency);
            SetCard(card, PaymentType.CreditCard);

            this.Installments     = installments;
            this.SoftDescriptor   = softDescriptor;
            this.RecurrentPayment = recurrentPayment;
            this.Country          = country;
        }
예제 #3
0
 public Payment(decimal amount, Currency currency, int installments, string softDescriptor, CreditCard creditCard, RecurrentPayment recurrentPayment, string country = Cielo.Country.BRA)
 {
     this.Type             = PaymentType.CreditCard;
     this.Amount           = amount;
     this.Currency         = currency;
     this.Installments     = installments;
     this.SoftDescriptor   = softDescriptor;
     this.CreditCard       = creditCard;
     this.RecurrentPayment = recurrentPayment;
     this.Country          = country;
 }