Pay Card
A payment going through: a drawn card fills in group by group, turns over for its code, then a pointer presses pay and the button turns into a success state while the total settles and a receipt line slides in. Visitors can turn the card over, tilt it with the pointer and press pay to play the payment again.
pixikit.com/docs/blocks/illustrations/pay-card
Customize
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
17| Name | Type | Default | Description |
|---|---|---|---|
brand | string | "Northwind" | The made-up brand name printed on the card. |
holder | string | "Ada Lindqvist" | The name printed at the bottom of the card. |
number | string | "5100 0000 0000 0084" | The card number in groups; the middle groups are shown as dots. |
expiry | string | "08/29" | The expiry printed on the card. |
lines | PayCardLine[] | DEFAULT_LINES | The items on the order, with their prices. |
currency | string | "$" | The currency sign in front of every amount. |
payLabel | string | "Pay {total}" | The pay button text; {total} is replaced with the formatted total. |
successLabel | string | "Paid" | The pay button text once the payment went through. |
receiptLabel | string | "Receipt sent" | The small line that slides in under the summary after paying. |
flipLabel | string | "Turn the card over" | What screen readers call the card button that turns the card over. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |