1.4.0 • Published 6 months ago

@yourasset/ya-finance-now v1.4.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
6 months ago

@yourasset/ya-finance-now

License npm version

The @yourasset/ya-finance-now web component provides finance-related features for your watches. Follow the steps below to integrate it into your website.

Getting started

With CDNs like JSPM, Skypack or UNPKG, you can import just our modules in <script type="module">.

Add the following script tag to your HTML file to include the @yourasset/ya-finance-now web component using Skypack:

<script
  type="module"
  src="https://cdn.skypack.dev/@yourasset/ya-finance-now"
></script>

Use the ya-finance-now element in your HTML:

<ya-finance-now
  merchantid="your-merchant-id"
  sku="your-product-sku"
  price="your-product-price"
  language="your-language"
></ya-finance-now>

For a pre-owned product, add the preowned attribute:

<ya-finance-now
  merchantid="your-merchant-id"
  sku="your-product-sku"
  preowned
></ya-finance-now>

For a full width widget, add the full-width attribute:

<ya-finance-now
  merchantid="your-merchant-id"
  sku="your-product-sku"
  preowned
  price="your-product-price"
  language="your-language"
  full-width
></ya-finance-now>

To link directly to the financing page instead of the product page, add the financing-page attribute:

<ya-finance-now
  merchantid="your-merchant-id"
  sku="your-product-sku"
  financing-page
></ya-finance-now>

Properties

  • merchantid (String, required): The merchant ID associated with your account.
  • sku (String, required): The product SKU used by the merchant.
  • preowned (Boolean, optional): Indicates whether the item is pre-owned. Default is false.
  • price (Number, optional): The fallback price to calculate the financing if the sku could not be found.
  • language (String, optional): The language for the component. It falls back to the HTML lang attribute, otherwise defaults to en.
  • full-width (Boolean, optional): Indicates whether the widget should be full width. Default is false.
  • financing-page (Boolean, optional): When true, links directly to the financing page instead of the product page. Default is false.

License

This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details.

Copyright © 2024 Yourasset AG

1.4.0

6 months ago

1.3.0

9 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.3

2 years ago

0.0.1

2 years ago