spz-paypal

Supported layouts: fixed fixed-height fill flex-item

When to use

When you need to use PayPal for payment.

Code Demonstration

Basic Usage

<spz-paypal
  id="paypal-express-button-container"
  product-form="#product-info-body"
  paypal-js="xxx"
  layout="fixed-height"
  height="52"
></spz-paypal>

Attributes

AttributeDescriptionTypeDefault ValueRequired
idElement IDstring-Yes
paypal-jssrc of PayPal resourcestring-Yes
product-formspz-product-form element ID, generally used on product detail pagesstring-Yes, unless cart-id is configured
cart-idspz-cart element ID, generally used in the shopping cart page or sidebar cartstring-Yes, unless product-form is configured

AI Summary (LLM Ready)

  • Component ID: spz-paypal
  • One-line purpose: Displays the PayPal payment button.
  • Detected attribute rows: 4
  • Detected method subsections: 0
  • Detected event subsections: 0
  • Top attribute names: id, paypal-js, product-form, cart-id
  • Top method names: none (needs manual completion)
  • Top event names: none (needs manual completion)
  • Reading order: start from usage/examples, then verify attributes, methods, and events.
  • Related docs: /en/guide/actions-and-events/ , /en/guide/layouts/