简体   繁体   English

如何在托管中解决狂欢付款

[英]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. rave v2 文档清楚地表明端点https://api.ravepay.co/v2/gpx/transactions/escrow/settle应该解决待处理的托管付款,但是,会出现 404 错误。

I've tried using https://rave.flutterwave.com and https://ravesandbox.flutterwave.com我试过使用https://rave.flutterwave.comhttps://ravesandbox.flutterwave.com

No docs I can find show the right API endpoint to settle escrow payment.我找不到任何文档显示正确的 API 端点来结算托管付款。

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. Flutterwave 文档没有很好地说明这是一种 POST 方法,而不是 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))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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