Made with create-react-library
npm install --save vapulus-snippet
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
/>
}
}
In the browser address bar replace localhost
with http://127.0.0.1
Example
http://127.0.0.1:3000
// or your specified port
MIT © Vapulus