Exemplo n.º 1
0
        private static Payment GetPaymentUsingCreditCard(string intent)
        {
            var payment = new Payment();

            payment.intent       = intent;
            payment.transactions = TransactionTest.GetTransactionList();
            payment.transactions[0].amount.details = null;
            payment.transactions[0].payee          = null;
            payment.payer         = PayerTest.GetPayerUsingCreditCard();
            payment.redirect_urls = RedirectUrlsTest.GetRedirectUrls();
            return(payment);
        }
Exemplo n.º 2
0
        private static Payment GetPaymentUsingPayPal(string intent)
        {
            var payment = new Payment();

            payment.intent       = intent;
            payment.transactions = TransactionTest.GetTransactionList();
            payment.transactions[0].amount.details             = null;
            payment.transactions[0].payee                      = null;
            payment.transactions[0].item_list.shipping_address = null;
            payment.payer         = PayerTest.GetPayerUsingPayPal();
            payment.redirect_urls = RedirectUrlsTest.GetRedirectUrls();
            return(payment);
        }