Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- }
- }
- });
- });
- 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.
- }
- }
- });
- });
- 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.
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement