//To Declare the Ippopay Payment
declare var Ippopay: any;
// For Success and Error Handlers. You can get the Payment status in the below function, it may be success or error.
const ippopayHandler = ( function (e) {
if(e.data.status == 'success'){
console.log(e.data)
}
if(e.data.status == 'failure'){
console.log(e.data)
}
});
window.addEventListener('message', ippopayHandler);
//To Initialize the Ippopay Payment
constructor(){
Ippopay.init();
}
Ippopay.open('ORDER_ID','PUBLIC_KEY');
Ippopay.close();
Card Number 4111 1111 1111 1111
Expiry 05/20
CVV 123
Card Number 4242 4242 4242 4242
Expiry 05/23
CVV 123