CodeSandbox Examples
This section contains live examples of implementations using the Thirstie SDK, which can be viewed in CodeSandbox VMs. These are not meant to be full featured ecommerce implementations, but highlight specific features.
These examples use demo api keys and do not enable payments.
Starter(CDN): A simple vanilla js site with a shopping cart, add to cart button and checkout, loading the SDK via Thirstie's CDN.
Starter(NPM): A simple vanilla js site with a shopping cart, add to cart button and checkout, loading the SDK via npm.
To install on popular site builders like Squarespace or WordPress, you will use the site builder's custom code capabilities to initialize the Thirstie SDK.
- Squarespace: Squarespace's Code Injection feature let's you load the Thirstie SDK via Thirstie's CDN.
Test scenarios
Zip Codes Addresses
You can use any valid address to test. These are samples we use in testing.
In Coverage
| zip code | address |
|---|---|
| 10024 | 201 West 89th Street, NY, NY 10024 |
| 90210 | 905 Loma Vista Dr, Beverly Hills, CA 90210 |
| 60657 | 3175 N Broadway, Chicago, IL 60657 |
No Coverage
| zip code | address |
|---|---|
| 15212 | 117 Sandusky St, Pittsburgh PA 15212 |
| 02215 | 4 Jersey St, Boston, MA 02215 |
Test Credit Cards
Since we use Stripe for payment processing, you can use Stripe's test cards for testing during checkout.
Valid Cards
| card number | scenario |
|---|---|
4242 4242 4242 4242 | Visa (Requires 3-digit CVC) |
5555 5555 5555 4444 | Master Card (Requires 3-digit CVC) |
2223 0031 2200 3222 | Master Card (Requires 3-digit CVC) |
3782 822463 10005 | American Express (Requires 4-digit CVC) |
3714 496353 98431 | American Express (Requires 4-digit CVC) |
Problem States
| card number | scenario |
|---|---|
4000 0000 0000 0002 | Processor Declined |
4000 0000 0000 0127 | Always returns "Incorrect CVV/CVC" |