简体   繁体   English

在php中集成rave flutterwave api

[英]Integrate rave flutterwave api in php

你好我在客户端项目中使用核心 PHP,我需要集成 rave flutter wave API,我现在搜索了很多链接我在这里检查这个 URL 但没有得到一个好的结果,所以请帮助我在 rave flutter wave "尼日利亚PHP 中的支付网关 API

Our Product for collections is called Rave, please follow the steps below to get started:我们的系列产品名为 Rave,请按照以下步骤开始:

  1. Sign up https://ravepay.co/ , for a sanbox account sign up on http://rave.frontendpwc.com注册https://ravepay.co/ ,在http://rave.frontendpwc.com上注册一个 sanbox 帐户

  2. Add a settlement account on sign up注册时添加结算账户

  3. Select a settlement preference by navigating to Account settings > Settlement preference (Find documentation attached for more detailed instruction).通过导航到账户设置 > 结算首选项来选择结算首选项(查找随附的文档以获得更详细的说明)。

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

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

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.
      }
    }
  });
});

});

If you have any issues at any point, please let us know and we will help sort you out.如果您在任何时候有任何问题,请告诉我们,我们会帮助您解决问题。

If you are here in 2020, the docs for the payment gateway has been updated, you can check how to integrate this with laravel seamlessly using this link https://questionbump.com/question/how-can-i-setup-flutterwave-payment-webhook-successfully-on-laravel-5/ I hope it helps someone.如果您在 2020 年来到这里,支付网关的文档已更新,您可以使用此链接查看如何将其与 laravel 无缝集成https://questionbump.com/question/how-can-i-setup-flutterwave- payment-webhook-successfully-on-laravel-5/我希望它对某人有所帮助。 I struggled to get this working.我努力让这个工作。

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

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