razorpay / razorpay-node

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

instance.orders.transfers is not a function #245

Closed negati-ve closed 2 years ago

negati-ve commented 2 years ago

As per documentation @ https://github.com/razorpay/razorpay-node/blob/master/documents/transfer.md,

instance.orders.transfers({
  "expand[]": "transfers"
})

results in "instance.orders.transfers is not a function" error

PR #246 adds function fetchTransfers to orders, allowing to fetch transfers for a given order id as follows,

instance.orders.fetchTransfers(
        "order_xxxxxxxxxxx"
    );
negati-ve commented 2 years ago

no takers?

ankitdas13 commented 2 years ago

@negati-ve sorry for the delay. I hope this issue has been resolved for you also we fixed this api instance.orders.fetchTransferOrder(orderId)