1.0.0 • Published 4 months ago

merchi_invoice v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

merchi_invoice

Merchi Invoice

merchi_checkout

Merchi's invoice component

Table of Contents

Installation

npm install merchi_invoice

or

yarn add merchi_invoice

Props

NameTypeDefaultDescription
alertErrorShow(message: string) => void?console.errorA callback function for errors
classNameMerchiInvoiceButtonDownloadInvoicestring?btn btn-lg btn-primaryA class for the download invoice button
classNameMerchiInvoiceButtonPayInvoicestring?btn btn-lg btn-primary btn-blockA class for the invoice payment button
callbackCreditCardPaymentSuccess(invoiceJson: any) => void;?console.logA callback function which returns invoice json on payment success
invoicemerchiInvoice json?{}The merchi invoice entity as json
urlApistring?https://api.merchi.co/v6/Url to connect to the api