More
Testing with Square sandbox
Test everything before real passengers book: use your test key and a Square sandbox account, and no real money moves.
Set up
- Create a free Square developer account at developer.squareup.com and open the sandbox seller dashboard.
- Connect that sandbox account in Payments in the Chauffeur Circle dashboard.
- Use your
cc_pk_test_…key. It works on your domains and also onlocalhost,127.0.0.1and*.pages.dev, so you can test on a development copy of your site.
Test cards
| Card | Result |
|---|---|
4111 1111 1111 1111 |
Approved (Visa) |
5105 1051 0510 5100 |
Approved (Mastercard) |
4000 0000 0000 0002 |
Declined |
Use any future expiry date, CVV 111 and a valid US ZIP code such as 94103. Square's sandbox refuses real card numbers.
Passenger phone numbers must be real-format numbers; 555 numbers are refused.
What to try
- Book a ride with the approved card and check both emails.
- Accept it in the dashboard.
- Book one inside 48 hours of pickup to see the hold straight away, then Complete it with tolls and check the charge and Chauffeur Circle's fee in the Square sandbox dashboard.
- Refund part of it.
- Book with the declining card inside 48 hours to see the update-card email and the at-risk booking.
- Cancel a booking inside the free-cancellation window to see the fee.
Going live
Connect your production Square account, switch your website code to the cc_pk_live_… key, and check your domains are on the live key.