A PayloadCMS plugin that integrates CHIP payment processing capabilities, allowing you to easily handle payments in your PayloadCMS application.
- Seamless integration with PayloadCMS
 - Easy payment creation and handling
 - Webhook support for payment status updates
 - TypeScript support
 
pnpm add chip-for-payloadAdd the plugin to your PayloadCMS configuration:
import { buildConfig } from 'payload/config'
import { chipPlugin } from 'chip-for-payload'
export default buildConfig({
  plugins: [
    chipPlugin({
      // Your CHIP configuration
      brandId: 'your-brand-id',
      apiKey: 'your-api-key',
    }),
  ],
})// Using the provided endpoint
const response = await fetch('/api/chip/purchases/create', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    purchase: {
      products: [
        {
          name: 'Test Product',
          quantity: 1,
          price: 1000, // in cents
        },
      ],
    },
    client: {
      name: 'Test Customer',
      email: '[email protected]',
      // ...other client details
    },
  }),
})
const payment = await response.json()The plugin automatically sets up webhook endpoints to handle payment status updates. Configure your CHIP webhook settings to point to:
/api/chip/webhook
/api/chip/callback/success
/api/chip/callback/failure
# Install dependencies
pnpm install
# Start development server
pnpm run dev
# Build for production
pnpm run buildMIT