Open hardikhari96 opened 9 months ago
In second time I am trying to create user it should return customer id ,
its throwing error that customer is already exist but it should return customer id as I sending fail_existing : 0
// Package : ^2.0.6 : new API({ hostUrl: 'https://api.razorpay.com/v1/', ua: 'razorpay-node@' + Razorpay.VERSION, key_id: key_id, key_secret: key_secret, headers: headers }); // Package : ^2.9.2: this.api = new API({ hostUrl: 'https://api.razorpay.com', ua: 'razorpay-node@' + Razorpay.VERSION, key_id: key_id, key_secret: key_secret, headers: headers });
v18.13.0
^2.9.2
It is working in old package version (2.0.6) of Razorpay
I found API URL is different , may be its issue in API
https://api.razorpay.com/v1
but in new Updated package API is
https://api.razorpay.com
I too have the same issue. I have filed it here #377
Steps to reproduce the behavior
Expected behavior
In second time I am trying to create user it should return customer id ,
Actual behavior
its throwing error that customer is already exist but it should return customer id as I sending fail_existing : 0
Code snippets
Node version
v18.13.0
Library version
^2.9.2
Additional Information
It is working in old package version (2.0.6) of Razorpay
I found API URL is different , may be its issue in API
https://api.razorpay.com/v1
but in new Updated package API is
https://api.razorpay.com