README
vesta-checkout-demo
Vesta Checkout Form (Demo)
Install
npm install --save vesta-checkout-demo
Important
This npm package is just for Demo purposes.
Usage
import React, { Component } from "react";
import VestaCheckoutDemo from "vesta-checkout-demo";
export default class App extends Component {
render() {
return (
<div>
<VestaCheckoutDemo
stripeKey={"xxx"}
name={"Vodafone"}
description={"Pay our Bill"}
onSubmit={data => alert("Token = " + data.token)}
/>
</div>
);
}
}
License
MIT © [Roberto Rodriguez](https://github.com/Roberto Rodriguez)