Exemple #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;
            }
        }
 public ConfirmPaymentRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
 public RefundPaymentRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
 public GetShippingDetailsRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }
 public ExpressCheckoutRequest(PayPalExecutorService executorService)
 {
     this.executorService = executorService;
 }