1.0.3 • Published 3 months ago

merchi_checkout v1.0.3

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

merchi_checkout

Merchi's custom checkout step form

Table of Contents

Installation

npm install merchi_checkout

or

yarn add merchi_checkout

Props

NameTypeDefaultDescription
classNameMerchiCheckoutAlertsContainerstring?"d-flex justify-content-center flex-column alerts-container-sm"Class for the alerts container
classNameMerchiCheckoutAlertstring?"alert alert-dismissible alert-notify"Class for the alert element
classNameMerchiCheckoutAlertErrorstring?"alert-danger"Class for the danger/error alert
classNameMerchiCheckoutAlertSuccessstring?"alert-success"Class for the success alert
classNameMerchiCheckoutButtonPrimarystring?"btn btn-md btn-primary d-flex align-items-center justify-content-center"Class for the primary button
classNameMerchiCheckoutButtonPrimaryBlockstring?"btn btn-lg btn-primary btn-block"Class for the primary block button
classNameMerchiCheckoutButtonSecondarystring?"btn btn-lg btn-secondary"Class for the secondary button
classNameMerchiCheckoutButtonSecondaryBlockstring?"btn btn-lg btn-secondary btn-block"Class for the secondary block button
classNameMerchiCheckoutButtonDownloadInvoicestring?"btn btn-lg btn-primary"Class for the download invoice button
classNameMerchiCheckoutFormCheckboxstring?"form-check-input"Class for input checkbox or radio
classNameMerchiCheckoutFormGroupstring?"form-group"Class for the form group: label, input, checkbox, radio...
classNameMerchiCheckoutFormGroupCheckboxstring?"form-check"Class for the checkbox/radio container
classNameMerchiCheckoutFormInputstring?"form-control"Class for input fields
classNameMerchiCheckoutGoogleSuggestListstring?"list-group m-b-0"Class for a list group
classNameMerchiCheckoutGoogleSuggestListItemstring?"list-group-item cursor-pointer"Class for the list item geo suggest
classNameMerchiCheckoutListGroupItemLoaderstring?"list-group-item modal_merchi-checkout-shipment-option"Class for the list item loader
classNameMerchiCheckoutFormLabelCheckboxstring?NoneClass for the checkbox/radio label
classNameMerchiCheckoutInputErrorstring?"text-danger"Class for the input error
classNameMerchiCheckoutListGroupstring?"modal_merchi-checkout-shipment-option"Class for the checkout list group
classNameMerchiCheckoutListGroupItemstring?"list-group-item"Class for the checkout list group item
classNameMerchiCheckoutRowstring?"merchi-row"Class for a row element
classNameMerchiCheckoutRowColumnstring?"merchi-column"Class for a column element
classNameMerchiCheckoutTabsContainerstring?"merchi-checkout-tabs-container"Class for the tabs container
classNameMerchiCheckoutTabstring?"merchi-checkout-tab"Class for the checkout tab element
classNameMerchiCheckoutTabPanestring?"tab-pane"Class for the tab pane
classNameMerchiCheckoutTabPaneButtonstring?"btn merchi-checkout-tab-btn"Class for the tab pane button
classNameMerchiCheckoutTabPaneContainerstring?"tab-content"Class for the tab content
classNameMerchiCheckoutTabButtonstring?"btn merchi-checkout-tab-btn"Class for the merchi checkout tab button
classNameMerchiInvoiceButtonPayInvoicestring?"btn btn-lg btn-primary btn-block"Class for the invoice pay button
currentUserMerchiUserJson?NoneMerchi user entity
googlePlacesApiKeystring?NoneAPI key for Google places
hideDraftingboolean?trueTells the checkout to hide the customisation tab
includeDomainSignupboolean?falseTells the checkout to hide the domain sign up tab
invoiceMerchiInvoiceJson?NoneA Merchi invoice json object
redirectAfterSuccessUrlstring?NoneOn checkout or job creation this url will be redirected to. Typically used for third party conversion tracking
redirectAfterQuoteSuccessUrlstring?NoneOn checkout or job creation "quote request", this url will be redirected to. Typically used for third party conversion tracking
redirectWithValueboolean?trueOn redirect the value of the sale will be appended onto the "redirectAfterSuccessUrl" orredirectAfterQuoteSuccessUrl. For this to work correctly make sure you add "?" or "&" to the end of the redirect urls depending on if they already include query parameters or not.
isBuyRequestboolean?NoneTells the checkout to dsiplay payment gateway
isOpenboolean?NoneUsed if the checkout is active
isProductEmbedFormboolean?falseTells the checkout that it's a child of the Product emebd form
jobMerchiJobJson?NoneA Merchi job json object
messageSuccessBuyRequeststring?NoneA success message shown on completion of a buy request
messageSuccessQuoteRequeststring?NoneA success message shown on completion of a quote request
productMerchiProductJson?NoneA Merchi product json object
setInvoice(i: MerchiInvoiceJson) => void?NoneA setter function for the Merchi invoice
setJob(j: MerchiJobJson) => void?NoneA setter function for the Merchi job
showUserTermsAndConditionsboolean?trueShow user terms and conditions
toggleMerchiCheckout() => voidNoneA toggle function whcih sets the "isOpen" prop
urlApistring?'https://api.merchi.co/v6/'URL to connect to the Merchi API
urlFrontendstring?'https://merchi.co/'URL to redirect users to a frontend