简体   繁体   中英

How to settle a rave payment in escrow

I'm trying hard to find the latest way to settle a payment in escrow and the docs seem to be outdated.

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 API endpoint to settle escrow payment.

Note: there's an older answer on this platform but it no longer works.

Flutterwave docs dont do a good job telling that this is a POST method, not GET.

    const options = {
        method: 'POST',
        headers: {
                   'Content-Type': 'application/json',
        },
        body: JSON.stringify(data),
    };
        
    let data = {
        "id": txid,
        "secret_key": "your-secret-key"
    };

    fetch('https://api.ravepay.co/v2/gpx/transactions/escrow/settle', options)
       .then(response => response.json())
       .then(response => console.log(response))
       .catch(err => console.error(err))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM