Files
payload/packages/plugin-stripe
2022-08-17 13:58:41 -04:00
..
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00
2022-08-17 13:58:41 -04:00

Payload Stripe Plugin

NPM

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

  • lorem

    Lorem ipsum

    TypeScript

    All types can be directly imported:

    import {
      StripeConfig
     } from '@payloadcms/plugin-stripe/dist/types';
    

    Screenshots