0.0.5 • Published 1 year ago
sandpayjs v0.0.5
sandpayjs
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
License
MIT