BuyNowButton component renders a button that adds an item to the cart and redirects the customer to checkout.
Example codeAnchor link to section titled "Example code"
||The item quantity. Defaults to 1.|
||The ID of the variant.|
||An array of cart line attributes that belong to the item being added to the cart.|
Component typeAnchor link to section titled "Component type"
BuyNowButton component is a shared component, which means that it renders on both the server and the client. For more information about component types, refer to React Server Components.