spz-paypal
Displays a PayPal button.
Layouts
跳转到“Layouts”Usage
跳转到“Usage”<spz-paypal
layout="fixed-height"
height="52"
id="paypal-express-button-container"
variant="#product-info-variants"
quantity="#product-info-quantity"
product-id="xxxxxx"
variant-id="xxxxxx"
paypal-js=""
></spz-paypal>
Attributes
跳转到“Attributes”id
跳转到“id”required
A string of the DOM ID. The id
defines an identifier (ID) which must be unique in the whole document.
paypal-js
跳转到“paypal-js”required
A URL of the PayPal resource.
variant
跳转到“variant”required
A string of the spz-variant
ID. For example #product-info-variant
.
quantity
跳转到“quantity”required
A string of the spz-quantity
ID. For example #product-info-quantity
.
product-id
跳转到“product-id”A string of the product id. Used to generate default source data.
variant-id
跳转到“variant-id”A string of the variant id. Specifies the currently selected variant id. Used to generate default source data.
locale-variant-unselect
跳转到“locale-variant-unselect”Specifies the text of the tip pop-up for variant unselect.
locale-soldout
跳转到“locale-soldout”Specifies the text of the tip pop-up for product sold out.
locale-unavailable
跳转到“locale-unavailable”Specifies the text of the tip pop-up for product unavailable.