Flutterwave / Python-v2

Python library for Flutterwave for Business (F4B) v2 APIs
https://developer.flutterwave.com/
MIT License
21 stars 15 forks source link

Is settle escrow payment still a feature? #93

Closed dawoodjee closed 2 years ago

dawoodjee commented 2 years ago

The rave v2 docs clearly show that the endpoint https://api.ravepay.co/v2/gpx/transactions/escrow/settle should settle a pending escrow payment, however, a 404 error comes up instead.

I've tried using https://rave.flutterwave.com and https://ravesandbox.flutterwave.com

No docs I can find show the right right way to settle escrow payment. Please help!

corneliusyaovi commented 2 years ago

Hello @dawoodjee,

Thanks for sharing this with the team.

Kindly note that the 404 error reported will only be returned for two reasons:

  1. Non-existent escrow transaction IDs. This happens when the meta array initiating the escrow is not passed in the initial payment. Kindly cross-check with the developer docs and confirm that the right meta parameter is passed.
  2. Wrong ID passed in the settle endpoint. Please note that the id to be sent in the settle endpoint is returned as data.txid in the verify response for the initial escrow charge. any other value would return 404.

We'd also like to point out that the feature is not supported in the SDK. If you would like to make use of this, Please consider consuming the API directly.

Let us know if you have any questions.

dawoodjee commented 2 years ago

Hello Cornelius

Thank you for your quick response. I apologize for asking here but I'm quite desperate.

It seems like this endpoint does not exist. Looking at the response when a valid endpoint is reached, vs when it isn't. Valid endpoints always return JSON, whereas invalid ones show Cannot Get [your query]

image Valid Endpoint

image Valid Endpoint with error

image Same endpoint with a typo

image Escrow endpoint seems invalid, it also gives the same result if I pass the parameters

dawoodjee commented 2 years ago

I've resolved this issue by specifying that the request type is POST not the default GET.

Thank you