申购
1、安装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、开始申购
3、支付成功后通知
Last updated