@yourasset/ya-finance-now
v1.2.0
Published
[![License](https://img.shields.io/badge/License-GPL--3.0--or--later-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html) [![npm version](https://badge.fury.io/js/@yourasset%2Fya-finance-now.svg)](https://badge.fury.io/js/@yourasset%2Fya-finance-now)
Downloads
19
Readme
@yourasset/ya-finance-now
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>
<ya-finance-now
merchantid="your-merchant-id"
sku="your-product-sku"
preowned
price="your-product-price"
language="your-language"
full-width
></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 isfalse
.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 HTMLlang
attribute, otherwise defaults toen
.full-width
(Boolean, optional): Indicates whether the widget should be full width. Default isfalse
.
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