public PayPalConfirmResponse Get(string token) { var request = new GetExpressCheckoutDetailsReqFromPayment(token).Do(); var service = new GetPayPalAPIInterfaceServiceService(_appSettings).Do(); var expressCheckoutResponse = service.GetExpressCheckoutDetails(request); return(expressCheckoutResponse.ToResponse()); }
public PayPalCompleteResponse Do(PayPalCompleteRequest details) { var request = new GetDoExpressCheckoutPaymentReq(details).Do(); var service = new GetPayPalAPIInterfaceServiceService(_appSettings).Do(); var doExpressCheckoutResponse = service.DoExpressCheckoutPayment(request); return(doExpressCheckoutResponse.ToResponse()); }
public StartPayPalPaymentResponse Set(PayPalPayment payment) { var request = new GetSetExpressCheckoutReqFromPayment(payment).Do(); var service = new GetPayPalAPIInterfaceServiceService(_appSettings).Do(); var setExpressCheckoutResponse = service.SetExpressCheckout(request); return(setExpressCheckoutResponse.ToResponse()); }