razorpay / razorpay-node

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

Query Payments using Email Address #186

Closed Praveen2106 closed 1 year ago

Praveen2106 commented 3 years ago

Hi, Is there any way to query Payments API using the Email Address? We have this feature on the Razorpay Payments Dashboard.

Regards, Praveen Krishnan

ankitdas13 commented 2 years ago

Hi @Praveen2106 sorry for the delay . i hope this issue has been resolved but still if someone has same query then please check payment documentation .

kkyusufk commented 2 years ago

@Praveen2106 can you also explain in detail what is your question with an example if possible. We will be able to assist better if we know the full picture.

ankitdas13 commented 1 year ago

@Praveen2106 could you please confirm us?

Based on what I understand, you're asking for an API that allows you to fetch payments using an email address . If I am correct, then you cant do this . Payments can only be fetched by their Id or you can fetch multiple payments by this optional params

ankitdas13 commented 1 year ago

Closing this issue for now, due to not getting any response. Please let us know if you need any help.

Praveen2106 commented 1 year ago

Sorry for the delayed response.

We have the same API available on the Razorpay Dashboard. https://dashboard.razorpay.com/merchant/api/live/payments?skip=0&count=25&email=test@gmail.com&from=1671993000&to=1672684199

We had to fetch thousands of payments just to filter them based on email.

When our customer contacts customer support regarding the status of the payment, what's the correct way to find their payments through the API? Is there any solution?