Skip to content

Instantly share code, notes, and snippets.

@yupnano
Created May 14, 2018 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yupnano/bcbc90921ceae346b1b5513c49437887 to your computer and use it in GitHub Desktop.
Save yupnano/bcbc90921ceae346b1b5513c49437887 to your computer and use it in GitHub Desktop.
//for testnet, you need to specify options.callback, bescause it's mainnet by default
var options = {
callback: NebPay.config.testnetUrl //to tell app where to send tx result, and tell queryPayInfo where to query tx result.
}
//to send transaction
serialNumber = nebPay.pay(to, value, options)
//to query tx result
nebPay.queryPayInfo(serialNumber, options); //note that here you need to specify options argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment