Skip to main content

Checkout Form

A payment checkout form with card details and billing fields.

Preview · Checkout Form

Code​

<div class="card" style="max-width:360px;padding:1.25rem">
<h3 style="margin:0 0 1rem;font-size:0.975rem">Payment Details</h3>
<div class="vstack">
<label>Card number <input type="text" placeholder="4242 4242 4242 4242" /></label>
<div class="hstack">
<label style="flex:1">Expiry <input type="text" placeholder="MM/YY" /></label>
<label style="flex:0 0 90px">CVV <input type="text" placeholder="•••" /></label>
</div>
<label>Name on card <input type="text" placeholder="Jane Doe" /></label>
<button>Pay $499.00</button>
</div>
</div>

Props​

PropTypeDefaultDescription
amountnumberrequiredCharge amount
currencystring'USD'Currency code
apiUrlstring—Payment API URL
Version history

See the Changelog for version history and breaking changes.