Croissant Buyback Value
This component returns a simple span, and uses the required attributes below to calculate the total Croissant Buyback value.
Required Attributes
merchant-id
merchant-id
pricing-url
pricing-url
product-list
product-list
Optional Attributes
payout-method
payout-method
Customization
This component is a simple, un-styled text component. The styling can be modified by hooking into the CSS class name:.croissant-buyback-value
.
Example Code
$<croissant-buyback-value merchant-id="123321"
placement="pdp"
pricing-url="https://api.retailer.croissant.com/v0/prices"
product-list="[{'product-id': '1233456789', 'quantity': '1'}]"></croissant-buyback-value>
.croissant-buyback-value {
color: purple;
font-family: "Helvetica, sans-serif";
font-size: 18px;
}
Screenshot
Updated 7 months ago