Paypal Buttons
<sc-paypal-buttons></sc-paypal-buttons>
This component let users create paypal button.
Component Codex
Properties
| Property | Description | Type | Default |
|---|---|---|---|
| busy | Is this busy? | boolean | false |
| buttons | Buttons to render | string[] | ['paypal', 'card'] |
| clientId | Client id for the script. | string | |
| color | Button color. | "black" | "blue" | "gold" | "silver" | "white" | 'gold' |
| label | Label for the button. | "buynow" | "checkout" | "installment" | "pay" | "paypal" | 'paypal' |
| merchantId | The merchant id for paypal. | string | |
| merchantInitiated | Merchant initiated billing enabled. | boolean | |
| mode | Test or live mode. | "live" | "test" | |
| order | The order. | Checkout |
Events
| Event | Description | Type |
|---|---|---|
scPaid | CustomEvent<void> | |
scSetState | Set the state machine | CustomEvent<string> |
Shadow Parts
| Part | Description |
|---|---|
paypal-button | |
paypal-card-button |