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. It will inherit the style of any wrapping component.

Example Code

<span class="buyback-value"> //see CSS tab for style details
	$<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>
</span>
.buyback-value {
  color: purple;
  font-family: "Helvetica, sans-serif";
  font-size: 18px;
}

Screenshot