We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
I too have the same issue. I have filed it here #377
Sorry, something went wrong.
fix: wrong types definition specified for class field
b773e5e
According to [official docs for customer creation](https://razorpay.com/docs/api/customers/create/) using razorpay API, `fail_existing` should be a string. But the types defined where `boolean`, numeric `1` & `0`. fixes razorpay#377, fixes razorpay#381
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: