public static Payer GetPayerUsingPayPal() { var pay = new Payer(); pay.payer_info = PayerInfoTest.GetPayerInfoBasic(); pay.payment_method = "paypal"; return(pay); }
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); }
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); }