razorpay / razorpay-node

Razorpay node.js bindings
MIT License
179 stars 110 forks source link

IP is not required and should not be sent in product configuration node sdk #403

Closed harshSaf09 closed 5 months ago

harshSaf09 commented 5 months ago

Steps to reproduce the behavior

The steps:

  1. Create a product configuration json
  2. Enter IP as a field of type string
  3. I used '127.0.01' as the value
  4. send it

Expected behavior

I should receive a response with 200 status.

Actual behavior

I am receiving a response as 400 status with a message that ip is not required and should not be sent. When I am not adding ip then type error complains. image

Code snippets

The attach image should be enough for code snippet

Node version

node js v 18

Library version

razorpay v 2.9.2

Additional Information

I had to manually change the type of prooduct configuration params and mark ip as optional and then everything is working fine but that is ofcourse a temporary change.

harshSaf09 commented 5 months ago

the problem is solved with new update