pariola / paystack

Paystack API wrapper
103 stars 42 forks source link

transfer_recipient.remove throws error #9

Closed seyiogunjuyigbe closed 4 years ago

seyiogunjuyigbe commented 4 years ago

Hi,

I tried using the transfer_recipient.remove method and it throws an error. Error: Method not Allowed! - Resource declaration error

I checked the paystack docs and the only required params is the recipient_code or id. I have tried paystack.transfer_recipient.remove(recipient_code) paystack.transfer_recipient.remove({recipient_code})

Please assist.

Thanks again.

pariola commented 4 years ago

Sorry, my bad DELETE request wasn't enabled initially. Pushed fix!

Also, use an object instead

paystack.transfer_recipient.remove({recipient_code})

Let me know if you experience any other issues!

seyiogunjuyigbe commented 4 years ago

Thank you... it works now!