razorpay required content in json but this file is converthing ruby has to form-encoded data which razorpay is rejecting.
that's why it is creating problem of "Razorpay::BadRequestError (syntax error but provided amount=100...):"
when i passed json from controller and set Razorpay.headers { "content-type": "application/json" } it worked fine.