Skip to content
PixiKit

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
NameTypeDefaultDescription
brandstring"Northwind"The made-up brand name printed on the card.
holderstring"Ada Lindqvist"The name printed at the bottom of the card.
numberstring"5100 0000 0000 0084"The card number in groups; the middle groups are shown as dots.
expirystring"08/29"The expiry printed on the card.
linesPayCardLine[]DEFAULT_LINESThe items on the order, with their prices.
currencystring"$"The currency sign in front of every amount.
payLabelstring"Pay {total}"The pay button text; {total} is replaced with the formatted total.
successLabelstring"Paid"The pay button text once the payment went through.
receiptLabelstring"Receipt sent"The small line that slides in under the summary after paying.
flipLabelstring"Turn the card over"What screen readers call the card button that turns the card over.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again after the hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related