Пример #1
0
        private PayPalExecutorService GetExecutor()
        {
            if (sandBox)
            {
                //TODO: Get this from a service locator
                PayPalExecutorService executorService = new PayPalExecutorService("www.sandbox.paypal.com",
                    "https://api-3t.sandbox.paypal.com/nvp",
                    "seller_1304321426_biz_api1.gmail.com",
                    "1304321435",
                    "AMOeq0WCZpnGEtR-lNwLoqHOcjCdAn6LzhVI-Ksbm-wgCC1vF5VTyiqq");

                return executorService;
            }
            else
            {
                //TODO: Get this from a service locator
                PayPalExecutorService executorService = new PayPalExecutorService("www.paypal.com",
                    "https://api-3t.paypal.com/nvp",
                    "adamlukecarden_api1.hotmail.com",
                    "5SM3CFXFDGTP2V5S",
                    "Ai6OsGd.AggboYhKRwPVEn5tTAgXAZt.x074vGZzMUKPy5zCs8ACQrw.");

                return executorService;
            }
        }
Пример #2
0
 public ConfirmPaymentRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
Пример #3
0
 public RefundPaymentRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
Пример #4
0
 public GetShippingDetailsRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
Пример #5
0
 public ExpressCheckoutRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }