Integration Guides

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

pricing-url

product-list

Optional Attributes

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