Purchase
1、Init Web3 Widget
<script src="https://cashier.blockatm.net/libs/BlockATM.umd.js?apiKey=[API_KEY]"></script>window.BlockATM.init(dom, {
custNo: '**',
lang: 'en-US',
callback: ({type})=>{
if(type==='cancel'){
// Here is the logic to cancel the payment
}else if(type==='finish'){
// Here is the logic to complete the payment
}
}
})2、Start purchase
3、Notification after successful payment
Last updated