1.0.3 • Published 3 years ago

@orcden/od-moneris-hosted-payment v1.0.3

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
3 years ago

A component to easily connect to a moneris hosted endpoint

<od-moneris-hosted-payment> is a simple component that can be configured using the regular moneris hosted endpoint configs. This component just wraps the form in an easy to use interface.

Installation

  • Install with npm
npm i @orcden/od-moneris-hosted-payment

Usage

import '@orcden/od-moneris-hosted-payment';
<od-moneris-hosted-payment></od-moneris-hosted-payment>

Attributes

AttributeTypeDefaultDescription
hpp-endpointString""The moneris hosted endpoint you are connecting to
store-idString""The moneris store ID you are connecting to
hpp-keyString""The moneris hosted endpoint key you are connecting to
order-idString""The orderId you would like to attach to the moneris order
customer-nameString""The customers name that is making a purchase
customer-emailString""The customers email that is making a purchase
noteString""A simple note you would like to attach to the order
charge-totalString""The Total including tax that is being charged
hstString""The HST portion of the order

Properties

AttributeTypeDefaultDescription
hppEndpointString""The moneris hosted endpoint you are connecting to
storeIdString""The moneris store ID you are connecting to
hppKeyString""The moneris hosted endpoint key you are connecting to
orderIdString""The orderId you would like to attach to the moneris order
customerNameString""The customers name that is making a purchase
customerEmailString""The customers email that is making a purchase
noteString""A simple note you would like to attach to the order
chargeTotalString""The Total including tax that is being charged
hstString""The HST portion of the order

Functions

NameParametersDescription
submitNonesubmits the form and redirects the user to a new page hosteed by moneris

Styling

  • None

Development

Run development server and show demo

npm run demo

Run linter

npm run lint

Fix linter errors

npm run fix

Run tests

npm run test

Build for production

npm run build
1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago