Advertisement
Guest User

Untitled

a guest
Oct 10th, 2017
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. var chargeResponse = "",
  2. trxref = "FDKHGK" + Math.random(),// add your transaction ref here
  3. pubkey = "FLWPUBK-b13f71d6b6c2d0d7642fcb0df026c4ca-X"; // Add public keys generated on your dashboard here
  4. getpaidSetup({
  5. customer_email: "textaiwo@yahoo.com",//
  6. amount: 1000,
  7. currency: "NGN",
  8. country: "NG",
  9. custom_logo: "http://imgur.com/uuRnkV9",
  10. custom_description:"",
  11. custom_title: "The Start",
  12. txref: trxref,
  13. PBFPubKey: pubkey,
  14. onclose: function(response) {},
  15. callback: function(response) {
  16. //flw_ref = response.tx.flwRef;
  17. console.log("This is the response returned after a charge", response);
  18. if(response.tx.chargeResponse =='00' || response.tx.chargeResponse == '0') {
  19. // redirect to a success page
  20. } else {
  21. // redirect to a failure page.
  22. }
  23. }
  24. });
  25. });
  26.  
  27. var chargeResponse = "",
  28. trxref = "FDKHGK" + Math.random(),// add your transaction ref here
  29. pubkey = "FLWPUBK-b13f71d6b6c2d0d7642fcb0df026c4ca-X"; // Add public keys generated on your dashboard here
  30. getpaidSetup({
  31. customer_email: "textaiwo@yahoo.com",//
  32. amount: 1000,
  33. currency: "NGN",
  34. country: "NG",
  35. custom_logo: "http://imgur.com/uuRnkV9",
  36. custom_description:"",
  37. custom_title: "The Start",
  38. txref: trxref,
  39. PBFPubKey: pubkey,
  40. onclose: function(response) {},
  41. callback: function(response) {
  42. //flw_ref = response.tx.flwRef;
  43. console.log("This is the response returned after a charge", response);
  44. if(response.tx.chargeResponse =='00' || response.tx.chargeResponse == '0') {
  45. // redirect to a success page
  46. } else {
  47. // redirect to a failure page.
  48. }
  49. }
  50. });
  51. });
  52.  
  53. var chargeResponse = "",
  54. trxref = "FDKHGK" + Math.random(),// add your transaction ref here
  55. pubkey = "FLWPUBK-b13f71d6b6c2d0d7642fcb0df026c4ca-X"; // Add public keys generated on your dashboard here
  56. getpaidSetup({
  57. customer_email: "textaiwo@yahoo.com",//
  58. amount: 1000,
  59. currency: "NGN",
  60. country: "NG",
  61. custom_logo: "http://imgur.com/uuRnkV9",
  62. custom_description:"",
  63. custom_title: "The Start",
  64. txref: trxref,
  65. PBFPubKey: pubkey,
  66. onclose: function(response) {},
  67. callback: function(response) {
  68. //flw_ref = response.tx.flwRef;
  69. console.log("This is the response returned after a charge", response);
  70. if(response.tx.chargeResponse =='00' || response.tx.chargeResponse == '0') {
  71. // redirect to a success page
  72. } else {
  73. // redirect to a failure page.
  74. }
  75. }
  76. });
  77. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement