magicwallet-bts-pay
v1.2.0
Published
magicwallet-bts-pay
Downloads
20
Readme
magicwallet-bts-pay
Installation
To install magicwallet-bts-pay,use npm
npm install magicwallet-bts-pay
Usage
<script src="magicwallet-bts-pay.js"></script>
- get bts account
magicWalletBtsPay.magicwalletGetBtsAccount(function(account){
console.log(account)
},function(error){
console.log(error)
});
- confirm pay
magicWalletBtsPay.magicwalletConfirmPay(pay_account,pay_asset,pay_amount,order_id)
- close(用于关闭页面使用,platform参数会在magicwallet_get_bts_account方法中获取到)
magicWalletBtsPay.magicwalletCloseButton (platform)
- 有两个方法用于APP发送账号数据和接受支付数据
magicWalletBtsPay.magicwalletSendBtsAccount()
magicWalletBtsPay.magicwalletGetPayParams()