vesta-checkout-demo

Vesta Checkout Form (Demo)

Usage no npm install needed!

<script type="module">
  import vestaCheckoutDemo from 'https://cdn.skypack.dev/vesta-checkout-demo';
</script>

README

vesta-checkout-demo

Vesta Checkout Form (Demo)

NPM JavaScript Style Guide

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)