0.0.5 • Published 1 year ago

sandpayjs v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

sandpayjs

npm package

语雀中文文档

Installation

$ npm install sandpayjs // use npm
$ yarn add sandpayjs // use yarn
/* ES Module or CommonJS */

import { getAlipayAuthUrl } from "sandpayjs"; // ES Module
or
const { getAlipayAuthUrl } = require("sandpayjs"); // CommonJS

getAlipayAuthUrl(tokenId: string) // Examples
  .then((result) => {
    console.log('🚀', result)
  })
  .catch((error) => {
    console.error('❌', error)
  })



/* UMD */

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <title>Document</title>
  </head>
  <body>
    <script src="./dist/sandpayjs.umd.js"></script>
    <script>
      // Examples
      window.sandpayjs
        .getAlipayAuthUrl()
        .then(result => {
          console.log('🚀', result)
        })
        .catch(error => {
          console.error('❌', error)
        })
    </script>
  </body>
</html>

More Apis

see more

License

MIT

Thanks

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago