vapulus-snippetdeprecated

Made with create-react-library

Usage no npm install needed!

<script type="module">
  import vapulusSnippet from 'https://cdn.skypack.dev/vapulus-snippet';
</script>

README

vapulus-snippet

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save vapulus-snippet

Example

import React, { Component } from 'react'
import VapulusSnippetComponent from 'vapulus-snippet'
..
..
class YourComponent extends Component {
  render() {
    return <VapulusSnippetComponent 
                                     id="ID"
                                     //Your script id.
                                     vapulusId="VAPULUS_ID"
                                     //Your website id.
                                     amount="AMOUNT"
                                     //Your amount.
                                     onAccept="SUCCESS_REDIRECT_URL"
                                     //Success redirect url when process successed
                                     onFail="FAIL_REDIRECT_URL/">
                                     //Fail redirect url when payment fail
             />
  }
}
For local development

In the browser address bar replace localhost with http://127.0.0.1
Example http://127.0.0.1:3000 // or your specified port

License

MIT © Vapulus