magicwallet-bts-pay

1.2.0 • Public • Published

magicwallet-bts-pay

Installation

To install magicwallet-bts-pay,use npm

npm install magicwallet-bts-pay 

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i magicwallet-bts-pay

Weekly Downloads

7

Version

1.2.0

License

ISC

Unpacked Size

3.86 kB

Total Files

4

Last publish

Collaborators

  • angelise7