public static PaymentExecution GetPaymentExecution() { List <Transactions> transactions = new List <Transactions>(); transactions.Add(TransactionsTest.GetTransactions()); PaymentExecution execution = new PaymentExecution(); execution.payer_id = PayerInfoTest.GetPayerInfo().payer_id; execution.transactions = transactions; return(execution); }
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); }