# Snipcart

Source: https://kart.bnomei.com/docs/providers/snipcart
Updated: 2025-08-08T14:21:27+00:00
Summary: Integrate Snipcart with Kirby CMS using the Kart plugin: configure the provider in config.php, set API credentials in .env, and add checkout JS.

> Snipcart is a shopping cart solution in itself. The Kart plugin does not ouput the HTML attributes required by Snipcart but you could do that in your templates.   
> Snipcart has no hosted checkout thus their JS library is used as described below.  
> You can use this provider to import products sold on Snipcart into Kirby and later switch to another provider for payment processing.

## Using the provider

Path: site/config/config.php  
Code (php):  
```
<?php

return [
   'bnomei.kart.provider' => 'snipcart',
   // other options
];
```

  
## API Credentials

![](https://kart.bnomei.com/media/pages/media/b6e45883bc-1746706069/snipcart-1920x.webp)  
Path: .env  
Code (plaintext):  
```
SNIPCART_PUBLIC_KEY=XXX
SNIPCART_SECRET_KEY=ZZZ
```

  
## Snipcart Checkout JS

Path: site/templates/payment.php  
Code (php):  
```
<?php snippet('kart/snipcart-checkout') ?>

<?php // or create a custom version based on the snippet ?>
<script>
  ...
</script>
```

  