//To Declare the Foloosi Payment
declare var Foloosipay: any;
// For Success and Error Handlers. You can get the Payment status in the below function, it may be success or error.
const foloosiHandler = ( function (e) {
if (e.data.status == 'success') {
console.log(e.data.status);
if (e.data.status == 'error') {
console.log(e.data.status);
window.addEventListener('message', foloosiHandler);
//To Initialize the Foloosi Payment