Skip to content

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 codeaddress
10024201 West 89th Street, NY, NY 10024
90210905 Loma Vista Dr, Beverly Hills, CA 90210
606573175 N Broadway, Chicago, IL 60657

No Coverage

zip codeaddress
15212117 Sandusky St, Pittsburgh PA 15212
022154 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 numberscenario
4242 4242 4242 4242Visa (Requires 3-digit CVC)
5555 5555 5555 4444Master Card (Requires 3-digit CVC)
2223 0031 2200 3222Master Card (Requires 3-digit CVC)
3782 822463 10005American Express (Requires 4-digit CVC)
3714 496353 98431American Express (Requires 4-digit CVC)

Problem States

card numberscenario
4000 0000 0000 0002Processor Declined
4000 0000 0000 0127Always returns "Incorrect CVV/CVC"

Updated at: