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
    }
  }
})

For detailed process, please refer to BlockATM Web3 access steps

2、Start purchase

Select the purchase product and share to call Web3 Widget

For detailed parameters, please refer to BlockATM Payment Parameter Description

Key parameter description: custNo = white label customer number orderNo = [cycleId]:[shares]:[autoRenew]:[source] purchase cycle, purchase shares, whether to automatically renew, purchase wallet address

3、Notification after successful payment

BlockATM notifies the white label upon successful payment to create a subscription proposal and record financial holdings

Last updated