Skip to main content

Paypal Buttons

<sc-paypal-buttons></sc-paypal-buttons>

This component let users create paypal button.

Component Codex

Properties

PropertyDescriptionTypeDefault
busyIs this busy?booleanfalse
buttonsButtons to renderstring[]['paypal', 'card']
clientIdClient id for the script.string
colorButton color."black" | "blue" | "gold" | "silver" | "white"'gold'
labelLabel for the button."buynow" | "checkout" | "installment" | "pay" | "paypal"'paypal'
merchantIdThe merchant id for paypal.string
merchantInitiatedMerchant initiated billing enabled.boolean
modeTest or live mode."live" | "test"
orderThe order.Checkout

Events

EventDescriptionType
scPaidCustomEvent<void>
scSetStateSet the state machineCustomEvent<string>

Shadow Parts

PartDescription
paypal-button
paypal-card-button