mcpField
B
bagisto-payment-method-development

bagisto-payment-method-development

github.com/bagistoDevelopment13128 installsUpdated 2w ago
Repository

About bagisto-payment-method-development

A skill for Bagisto developers building and configuring custom payment methods. It covers payment architecture and implementation references, and requires a separate verification skill before changes are considered complete.

Key features

  1. 01Guide to custom payment methods
  2. 02Payment classes and configuration files
  3. 03Admin configuration interface setup
  4. 04Per-channel settings
  5. 05Required pre-completion verification skill

Use cases

  1. 01Connect a payment gateway to a store
  2. 02Add a checkout payment option
  3. 03Modify existing payment configuration
  4. 04Create admin settings for a payment method

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bagisto/agent-skills --skill bagisto-payment-method-development

After installing, type/bagisto-payment-method-developmentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

implementation.md
payment-api.md
reference.md

Details

From the project README

Payment Method Development

Overview

Creating custom payment methods in Bagisto allows you to integrate any payment gateway or processor with your store. Whether you need local payment methods, cryptocurrency payments, or specialized payment flows, custom payment methods provide the flexibility your business requires.

For our tutorial, we'll create a Custom Stripe Payment method that demonstrates all the essential concepts you need to build any type of payment solution.

When to Apply

Activate this skill when:

  • Creating new payment methods
  • Integrating payment gateways (Stripe, PayPal, Razorpay, etc.)
  • Adding payment options to checkout
  • Modifying existing payment configurations
  • Creating admin configuration for payment methods

Bagisto Payment Architecture

Bagisto's payment system is built around a flexible method-based architecture that separates configuration from business logic.

Core Components
ComponentPurposeLocation
Payment Methods ConfigurationDefines payment method propertiesConfig/payment-methods.php
Payment ClassesContains payment processing logicPayment/ClassName.php
System ConfigurationAdmin interface formsConfig/system.php
Service ProviderRegisters payment methodProviders/ServiceProvider.php
Key Features
  • Flexible Payment Processing: Support for redirects, APIs, webhooks, or custom flows.
  • Configuration Management: Admin-friendly settings interface.
  • Multi-channel Support: Different settings per sales channel.
  • Security Ready: Built-in CSRF protection and secure handling.
  • Extensible Architecture: Easy integration with third-party gateways.

Reference files — load only what the current task needs

FileLoad when
implementation.mdBuilding a payment method — the step-by-step guide
payment-api.mdThe base payment class and the methods to override
reference.mdBuilt-in methods, best practices, a complex integration example, package layout, testing, pitfalls

REQUIRED SUB-SKILL: Use bagisto-change-verification before calling any change done.

Comments

Markdown supported