Payload Stripe Plugin
A plugin for Payload CMS to manage a Stripe account through Payload.
Core features:
- Enables two-way data sync between Stripe and Payload
- Provides Payload access control to the Stripe API
- Opens custom routes to interface with the Stripe API
Installation
yarn add @payloadcms/plugin-stripe
# OR
npm i @payloadcms/plugin-stripe
Basic Usage
In the plugins array of your Payload config, call the plugin with options:
import { buildConfig } from 'payload/config';
import stripe from '@payloadcms/plugin-stripe';
const config = buildConfig({
collections: [
{
slug: 'pages',
fields: []
},
],
plugins: [
stripe({
})
]
});
export default config;
Options
-
loremLorem ipsum
TypeScript
All types can be directly imported:
import { StripeConfig } from '@payloadcms/plugin-stripe/dist/types';Screenshots