Download the PHP package tristantbg/kirby-stripe without Composer
On this page you can find all versions of the php package tristantbg/kirby-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tristantbg/kirby-stripe
More information about tristantbg/kirby-stripe
Files in tristantbg/kirby-stripe
Package kirby-stripe
Short Description Connect to Stripe to easily create product checkouts and more
License MIT
Homepage https://github.com/tristantbg/kirby-stripe#readme
Informations about the package kirby-stripe
Kirby Stripe
A Kirby plugin to connect to Stripe.
Installation
Download
Download and copy this repository to /site/plugins/kirby-stripe
.
Git submodule
Composer
Configuration
Add a .env file to the root of your Kirby plugin with the following properties:
Key | Type |
---|---|
STRIPE_LIVE_PUBLISHABLE_KEY | String |
STRIPE_LIVE_SECRET_KEY | String |
STRIPE_TEST_PUBLISHABLE_KEY | String |
STRIPE_TEST_SECRET_KEY | String |
Kirby config defaults
Use the plugin
API KEYS
In order for the plugin to work, you need to get your keys here https://dashboard.stripe.com/apikeys
NOTE: This plugin includes a .env.example file as well.
METHODS
Use Stripe PHP client for custom queries
Gets all prices
Gets all products
Queries uses Stripe query language:
Example:
https://stripe.com/docs/search#search-query-language
ROUTES ENDPOINTS
PRICE_ID KIRBY FIELD
To easily connect a Kirby page to a Stripe price_id of a product:
Plugin Development
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
Start the dev process with:
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
Build final files with:
This will automatically create a minified and optimized version of the index.js
and index.css
.
License
MIT
All versions of kirby-stripe with dependencies
getkirby/composer-installer Version ^1.2
vlucas/phpdotenv Version ^5.4
stripe/stripe-php Version ^10.3