public IHttpActionResult CreatePaypalPayment(PaypalPaymentPostObj data)
 {
     try
     {
         return(Ok(PaymentsService.CreatePaypalPayment(data)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
        public void CreatePaypalPayment()
        {
            //// Arrange
            //var controller = new PaymentsController();


            var data = new PaypalPaymentPostObj
            {
                invoice_number = "123456",
                total          = "7",
                description    = "This is the description",
                return_url     = "www.abc.com",
                cancel_url     = "www.abc.com/cancel"
            };

            // Act
            var result = PaymentsService.CreatePaypalPayment(data);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("123456", result.transactions[0].invoice_number);
        }