Changed some validations
simplified json conversion
added paypal paymentdetails support