Skip to content

hash_conversions.rb sends form-encoded data #261

@aiankitp

Description

@aiankitp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions