@yourasset/ya-finance-now
v1.0.12
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
31
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"
preowned
price="your-product-price"
language="your-language"
></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
.
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