How to implement credit and debit card payments in ionic angular app

How to implement card payments in ionic so whenever user pay through card gets success token and on cancel payment get cancel response