Esempio n. 1
0
        public static PaymentExecution GetPaymentExecution()
        {
            var transactions = new List <Transaction>();

            transactions.Add(TransactionTest.GetTransaction());
            PaymentExecution execution = new PaymentExecution();

            execution.payer_id     = PayerInfoTest.GetPayerInfo().payer_id;
            execution.transactions = transactions;
            return(execution);
        }
Esempio n. 2
0
        public static Payer GetPayerUsingCreditCard()
        {
            var fundingInstrumentList = new List <FundingInstrument>();

            fundingInstrumentList.Add(FundingInstrumentTest.GetFundingInstrument());
            var pay = new Payer();

            pay.funding_instruments = fundingInstrumentList;
            pay.payer_info          = PayerInfoTest.GetPayerInfo();
            pay.payer_info.phone    = null;
            pay.payment_method      = "credit_card";
            return(pay);
        }