0.0.28 • Published 2 years ago

@getmeru/pay-button v0.0.28

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Description

This package is intended to be used by our partners to allow payments in websites using Meru

Installation

If you are using a package manager

$ yarn add @getmeru/pay-button

or

$ npm install @getmeru/pay-button --save

Or you can add it as a dependency in your html file

<script src="https://cdn.jsdelivr.net/npm/@getmeru/pay-button"></script>

Usage

import Payment from "@getmeru/pay-button";

const meruPaymentButton = new Payment({
  merchantId: "YOUR_MERCHANT_ID",
  amount: 20.0,
  onPaymentSuccess: () => {},
});

meruPaymentButton.render("meru-button-container");

and just add this in the place where you want to render the button

<div id="meru-button-container"></div>
0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago