public static Payer GetPayerUsingPayPal()
        {
            var pay = new Payer
            {
                payer_info     = PayerInfoTest.GetPayerInfoBasic(),
                payment_method = "paypal"
            };

            return(pay);
        }
        public static PaymentExecution GetPaymentExecution()
        {
            var transactions = new List <Transaction>
            {
                TransactionTest.GetTransaction()
            };
            PaymentExecution execution = new PaymentExecution
            {
                payer_id     = PayerInfoTest.GetPayerInfo().payer_id,
                transactions = transactions
            };

            return(execution);
        }
        public static Payer GetPayerUsingCreditCard()
        {
            var fundingInstrumentList = new List <FundingInstrument>
            {
                FundingInstrumentTest.GetFundingInstrument()
            };
            var pay = new Payer
            {
                funding_instruments = fundingInstrumentList,
                payer_info          = PayerInfoTest.GetPayerInfo()
            };

            pay.payer_info.phone = null;
            pay.payment_method   = "credit_card";
            return(pay);
        }