razorpay / razorpay-node

Razorpay node.js bindings
MIT License
182 stars 111 forks source link

BAD_REQUEST_ERROR while tryinig createPaymentJson in node SDK #315

Closed abhinax4991 closed 2 years ago

abhinax4991 commented 2 years ago

I am trying the createPaymentJson method but i am getting the above error

 instance.payments.createPaymentJson({
        "amount": 100,
        "currency": "INR",
        "order_id": "order_KMgbpPvEzF92xq",
        "email": "gaurav.kumar@example.com",
        "contact": 9090909090,
        "method": "card",
        "card":{
          "number": 4111111111111111,
          "name": "Gaurav",
          "expiry_month": 11,
          "expiry_year": 23,
          "cvv": 100
        }
      })

error

{ statusCode: 400,
  error:
   { code: 'BAD_REQUEST_ERROR',
     description: 'The requested URL was not found on the server.',
     source: 'NA',
     step: 'NA',
     reason: 'NA',
     metadata: {} } }
ankitdas13 commented 2 years ago

@abhin-dynamify apologise for the late response. you got this error because your account does not have this feature enabled. you have to contact with support or via the chat option on your merchant dashboard to enable this feature.

kkyusufk commented 2 years ago

@abhin-dynamify Can you confirm whether this issue has been resolved?

kkyusufk commented 2 years ago

Hey @abhin-dynamify, pinging again. Please let us know if you are still facing this issue.

ankitdas13 commented 2 years ago

Closing this issue for now, due to not getting any response .Please feel free to add more suggestions you may have. if you are still getting the same error after enabling the feature, then dont let stop you to reopen. This issue