在php中集成rave flutterwave api

时间:2017-10-09 05:20:53

标签: php api payment-gateway flutterwave

你好我在客户端项目中使用核心PHP,我需要集成rave flutter wave API,我搜索了很多链接 现在我正在检查此网址here但未获得好结果, 所以请帮助我在PHP中狂欢浪潮“尼日利亚支付网关”API

2 个答案:

答案 0 :(得分:2)

我们的产品系列名为Rave,请按照以下步骤开始使用:

  1. 注册https://ravepay.co/,在http://rave.frontendpwc.com上注册sanbox帐户

  2. 在注册时添加结算帐户

  3. 导航至帐户设置>选择结算首选项结算首选项(查找随附的文档以获取更详细的说明)。

  4. 开发人员文档:https://flutterwavedevelopers.readme.io/v1.0

  5. 示例Rave演示:https://codepen.io/anon/pen/NgxaER

  6. Pay Now
    

    document.addEventListener("DOMContentLoaded", function(event) {
        document.getElementById("submit").addEventListener("click", function() {

    var chargeResponse = "",
        trxref = "FDKHGK" + Math.random(),// add your transaction ref here
        pubkey = "FLWPUBK-b13f71d6b6c2d0d7642fcb0df026c4ca-X"; // Add public keys generated on your dashboard here
      getpaidSetup({
        customer_email: "textaiwo@yahoo.com",// 
        amount: 1000,
        currency: "NGN",
        country: "NG",
        custom_logo: "http://imgur.com/uuRnkV9",
        custom_description:"",
        custom_title: "The Start",
        txref: trxref,
        PBFPubKey: pubkey,
        onclose: function(response) {},
        callback: function(response) {
          //flw_ref = response.tx.flwRef;
          console.log("This is the response returned after a charge", response);
          if(response.tx.chargeResponse =='00' || response.tx.chargeResponse == '0') {
            // redirect to a success page
          } else {
            // redirect to a failure page.
          }
        }
      });
    });
    

    });

    如果您在任何时候遇到任何问题,请告诉我们,我们会帮助您解决问题。

答案 1 :(得分:0)

如果您在2020年到达这里,则支付网关的文档已更新,您可以使用此链接检查如何将其与laravel无缝集成 https://questionbump.com/question/how-can-i-setup-flutterwave-payment-webhook-successfully-on-laravel-5/ 希望对您有所帮助。我努力使它正常工作。