razorpay / razorpay/razorpay-node
Customer Already exists error
Open
@ankitdas13 is already working on this.
Since Dec 11, 2023.
question
- Dominant language
- JavaScript
- Stars
- 243
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce the behavior
- Use razorpay-node v2.9.2
- Run the below code snippet more than once
- See that it works ok the first time and throws error after that
- Now downgrade razorpay-node to v2.8.6
- And repeat step 2
- See no errors are occuring
Expected behavior
If customer with similar data already exists, their data should be returned when fail_existing is set to 0.
Actual behavior
Error is thrown when customer is similar data already exists.
Code snippets
razorpayInstance.customers.create({
name: "",
contact: request.phone_number,
fail_existing: 0,
});
Node version
Node v18.17.1
Library version
razorpay v2.9.2
Additional Information
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.