Payment Method
<sc-payment-method></sc-payment-method>
This component let users create payment method.
- Preview
- Code
<sc-payment-method class="card"></sc-payment-method><sc-payment-method class="bank"></sc-payment-method><script>document.querySelector('.card').paymentMethod = {card: { brand: 'visa', last4: '4242'}};document.querySelector('.bank').paymentMethod = {bank_account: { id: 'test', account_type: "checking", last4: '9999'}};</script>
Component Codex
Properties
Property | Description | Type | Default |
---|---|---|---|
externalLink | string | ||
externalLinkTooltipText | string | ||
full | boolean | ||
paymentMethod | PaymentMethod |
Shadow Parts
Part | Description |
---|---|
bank | |
base | |
card | |
instrument |