# Card Element quickstart

This quickstart covers how to get started on Stripe with the Card Element to start collecting card payments on Stripe.

Stripe recommends getting started with the newer Payment Element instead of the Card Element. It allows you to accept multiple payment methods with a single Element. Learn more about when to use the Card Element and Payment Element.

## Running the sample

1. Build the server

~~~
composer install
~~~

2. Run the server

~~~
php -S 127.0.0.1:4242 --docroot=public
~~~

3. Go to [http://localhost:4242/public/checkout.html](http://localhost:4242/public/checkout.html)