1.0.4 • Published 10 months ago

fluid-payment-js v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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+.

1.0.4

10 months ago

1.0.3

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago