2017-10-09 11 views
1

こんにちは私はクライアントプロジェクトでコアPHPを使用しています。私はレイブフラッターウェーブAPIを統合する必要があります。 今多くのリンクを検索しました。このURLはhereですが、 ので、コレクションのための当社の製品はレイヴと呼ばれているPHPPHPでレイブフラッターウェーブAPIを統合

+0

あなたは正確に何をしましたか?正確にどこに挑戦していますか?前に決済ゲートウェイを書いていますか? –

+1

@rakesh_sharma https://github.com/Flutterwave/flutterwave-php – shashi

+0

はいこのapiを使用しましたが、Card :: chargeは値を返すことができません –

答えて

2

で絶賛フラッター波「ナイジェリア支払いゲートウェイ」APIで私を助けてください、始めるには、以下の手順に従ってください。https://ravepay.co/アップ

  1. サインオン、用sanboxアカウントはhttp://rave.frontendpwc.comに登録

  2. は(より詳細な指示のための添付文書を探す)>設定をアカウントに移動して決済好みを決済設定を選択サインアップ

  3. に決済口座を追加します。開発者のための

  4. ドキュメント:https://flutterwavedevelopers.readme.io/v1.0

  5. サンプル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: "[email protected]",// 
    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. 
     } 
    } 
    }); 
}); 

})。

ご不明な点がございましたら、お気軽にお問い合わせください。