public Response <PayPal.Api.Payment> CreatePayment(PayPal.Api.Payment payment) { Response <PayPal.Api.Payment> response = null; PaymentBusiness paymentBusiness = null; PayPal <PayPal.Api.Payment> paypal = null; try { paymentBusiness = new PaymentBusiness(); paypal = paymentBusiness.Create(payment); response = new Response <PayPal.Api.Payment>(paypal.Object, ResponseStatus.Success, "Success"); } catch (Exception ex) { response = new Response <PayPal.Api.Payment>(null, ResponseStatus.Error, ex.Message); } return(response); }