Skip to content

[Feature]: Allow passing additional params to payments.all method #456

Description

@sushantdhiman

🚀 Feature Proposal

Similar to paymentLinks.all, which pass additional params to underlying GET request

return api.get({
url,
data: {
...params,
from,
to,

payments.all method should also pass additional params to GET request

return api.get({
url: `${BASE_URL}`,
data: {
from,
to,
count,

Suggested Solution

Add ...params in data before from, to, count etc here

return api.get({
url: `${BASE_URL}`,
data: {
from,
to,
count,

Alternatives

Directly using api.get method

Additional Information

Node JS: 22.x
Razorpay Node: 2.9.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions