fluid-payment-js
v1.0.4
Published
提供了fluid相关的功能
Downloads
6
Readme
Install
npm install fluid-payment-js --save-dev
Quick Start
import {fluid} from 'fluid-payment-js'
import 'fluid-payment-js/fluid.css'
// init
export default {
data () {
return {
,,,
}
},
created() {
// this.successFn: Require function,Callback after the order is successful
// this.closeFn: Require function,Callback after the iframe window is closed,not contain order successfully closed
this.fluidObject = new fluid(this.successFn, this.closeFn)
this.fluidObject.init()
},
methods: {
openFluid: function () {
// open fluid
this.fluidObject.loadFluidPayment(iframeUrl)
},
successFn: function () {
// do something ...
},
closeFn: function () {
// do something ...
}
}
}
Browser Support
Modern browsers and Internet Explorer 10+.