PHPackages                             tristantbg/kirby-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. tristantbg/kirby-stripe

ActiveKirby-plugin[Payment Processing](/categories/payments)

tristantbg/kirby-stripe
=======================

Connect to Stripe to easily create product checkouts and more

v1.0.2(2y ago)1547↓100%[1 issues](https://github.com/tristantbg/kirby-stripe/issues)MITPHPPHP &gt;=7.4.0

Since Jan 7Pushed 2y ago3 watchersCompare

[ Source](https://github.com/tristantbg/kirby-stripe)[ Packagist](https://packagist.org/packages/tristantbg/kirby-stripe)[ Docs](https://github.com/tristantbg/kirby-stripe#readme)[ RSS](/packages/tristantbg-kirby-stripe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Kirby Stripe
============

[](#kirby-stripe)

A [Kirby](https://getkirby.com) plugin to connect to [Stripe](https://stripe.com).

Installation
------------

[](#installation)

### Download

[](#download)

Download and copy this repository to `/site/plugins/kirby-stripe`.

### Git submodule

[](#git-submodule)

```
git submodule add https://github.com/tristantbg/kirby-stripe.git site/plugins/kirby-stripe

```

### Composer

[](#composer)

```
composer require tristantbg/kirby-stripe

```

Configuration
-------------

[](#configuration)

Add a .env file to the root of your Kirby plugin with the following properties:

KeyTypeSTRIPE\_LIVE\_PUBLISHABLE\_KEY`String`STRIPE\_LIVE\_SECRET\_KEY`String`STRIPE\_TEST\_PUBLISHABLE\_KEY`String`STRIPE\_TEST\_SECRET\_KEY`String`Kirby config defaults
---------------------

[](#kirby-config-defaults)

```
'tristantbg.kirby-stripe' => [
    'test_mode' => false,
    'payment_method_types' => ['card'],
    'automatic_tax' => true,
    'allowed_countries' => [
      'FR',
      'US',
      'CA',
      'GB',
      'IT',
      'ES',
      'DE',
      'MF',
      'PM',
      'RE',
      'MC',
      'MQ',
      'LU',
      'LI',
      'GG',
      'GP',
      'GR',
      'FI',
      'DK',
      'BE'
    ],
    'shipping_rate_data' => [
      'type' => 'fixed_amount',
      'tax_behavior' => 'inclusive',
      'fixed_amount' => [
        // Amount*100 = 5€ => 500
        'amount' => 500,
        'currency' => 'eur',
      ],
      'display_name' => 'Standard shipping',
      // Delivers between 5-7 business days
      'delivery_estimate' => [
        'minimum' => [
          'unit' => 'business_day',
          'value' => 5,
        ],
        'maximum' => [
          'unit' => 'business_day',
          'value' => 7,
        ],
      ]
    ]
  ]

```

Use the plugin
--------------

[](#use-the-plugin)

### API KEYS

[](#api-keys)

In order for the plugin to work, you need to get your keys here

> **NOTE:** This plugin includes a .env.example file as well.

### METHODS

[](#methods)

Use Stripe PHP client for custom queries

```
$stripe_client = KirbyStripe\Auth::stripeClient();
$products = $stripe_client->products->all(['limit' => 100])['data'];

```

Gets all prices

```
KirbyStripe\Methods::getPrices($search = 'optional query')

```

Gets all products

```
KirbyStripe\Methods::getProducts($search = 'optional query')

```

Queries uses Stripe query language:

Example:

```
$search = "active:'true' AND name~'name of product'"

```

### ROUTES ENDPOINTS

[](#routes-endpoints)

```
https://site.url/sck/api/prices

```

```
https://site.url/sck/api/products

```

```
https://site.url/sck/checkout/{{kirbyProductPageUid}}

```

```
https://site.url/sck/checkout/price/{{stripePriceId}}

```

### PRICE\_ID KIRBY FIELD

[](#price_id-kirby-field)

To easily connect a Kirby page to a Stripe price\_id of a product:

```
stripePriceID:
  extends: fields/stripe-price-id

```

Plugin Development
------------------

[](#plugin-development)

[Kirbyup](https://github.com/johannschopplich/kirbyup) is used for the development and build setup.

Kirbyup will be fetched remotely with your first `npm run` command, which may take a short amount of time.

### Development

[](#development)

Start the dev process with:

```
npm run dev

```

This will automatically update the `index.js` and `index.css` of the plugin as soon as changes are made. Reload the Panel to see the code changes reflected.

### Production

[](#production)

Build final files with:

```
npm run build

```

This will automatically create a minified and optimized version of the `index.js` and `index.css`.

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~172 days

Total

3

Last Release

877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/146a88578aae9cc4b1e62cd6599fe2dc94885400f40d23d88dede22debb1d056?d=identicon)[tristantbg](/maintainers/tristantbg)

---

Top Contributors

[![tristantbg](https://avatars.githubusercontent.com/u/4832038?v=4)](https://github.com/tristantbg "tristantbg (18 commits)")

---

Tags

stripepaymentscheckoutkirby

### Embed Badge

![Health badge](/badges/tristantbg-kirby-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/tristantbg-kirby-stripe/health.svg)](https://phpackages.com/packages/tristantbg-kirby-stripe)
```

###  Alternatives

[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)[payum/stripe

The Payum extension. It provides Stripe payment integration.

22573.1k3](/packages/payum-stripe)[chronon/stripe

A CakePHP 2.x Stripe Payment Processing Component.

4246.6k](/packages/chronon-stripe)[flux-se/sylius-stripe-plugin

Sylius Stripe plugin using Payment Request

1029.3k](/packages/flux-se-sylius-stripe-plugin)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[tatter/stripe

Stripe SDK integration for CodeIgniter 4

115.3k](/packages/tatter-stripe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
