fluentcart-payment-gateways

fluentcart-payment-gateways is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 105 tokens per session (1,365 once invoked), scanned A, original, MIT.

A guide to connecting third-party payment providers to FluentCart, a WordPress e-commerce system. A payment gateway is the adapter that sends payments to a provider and reports their final status back to the store.

In plain words
What is it for?
Use it to implement or audit gateway PHP classes, checkout JavaScript, signed webhooks, payment registration, reconciliation, refunds, and optional recurring payments.
Why use it?
It prevents a successful browser return from being mistaken for confirmed payment. It also keeps callbacks, webhooks, refunds, subscriptions, and transaction records consistent.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to implement or audit gateway PHP classes, checkout JavaScript, signed webhooks, payment registration, reconciliation, refunds, and optional recurring payments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill fluentcart-payment-gateways
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fluentcart-payment-gateways

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fluentcart-payment-gateways

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/fluentcart-payment-gateways.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.01365
Opus 5 $0.00053 $0.00682
Sonnet 5 $0.00021 $0.00273
Haiku 4.5 $0.00011 $0.00136

Measured yesterday against content hash 313d7faa4dde, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fluentcart-payment-gateways scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

fluentcart/fluentcart-payment-gateways/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FluentCart payment gateways

Implement a gateway as a provider adapter around FluentCart's order, transaction, and subscription state machine. A successful browser callback is not proof of settlement.

Read gateway-contract.md before creating the PHP class, checkout JavaScript, webhook, or subscription branch.

Implement the required contract

Extend AbstractPaymentGateway and supply BaseGatewaySettings. Implement:

  • meta()
  • fields()
  • makePaymentFromPaymentInstance()
  • handleIPN()
  • getOrderInfo()

GatewayManager 1.6.0 requires meta keys brand_color, description, icon, logo, route, status, and title. Also provide slug, upcoming, label/admin_title where the corresponding UI path reads them. Keep route, slug, registration key, frontend event suffix, stored option key, and webhook method consistent.

Attach the listener by fluentcart_loaded at the latest, then register during fluent_cart/register_payment_methods. In 1.6.0 the registration action runs in an earlier init callback than fluent_cart/init; adding this listener from fluent_cart/init is too late.

add_action('fluent_cart/register_payment_methods', static function (): void {
    fluent_cart_api()->registerCustomPaymentMethod(
        'acme_pay',
        new \Acme\FluentCart\AcmeGateway()
    );
});

registerCustomPaymentMethod requires an AbstractPaymentGateway instance. GatewayManager invokes boot() when present and injects StoreSettings.

Process the initial payment

Use the supplied PaymentInstance. Resolve/create provider objects with a stable idempotency key derived from the FluentCart transaction/payment attempt and mode. Return the response shape used by the active checkout client; 1.6.0 built-ins use status plus redirect_to or redirect_url depending on path, so test the concrete checkout script instead of copying the generic docs example.

Never:

  • create a second FluentCart order for the same PaymentInstance;
  • trust client amount/currency/customer/provider IDs;
  • mark an order paid before provider verification;
  • store raw card data or secret credentials in order/transaction meta;
  • turn a free trial into an unsupported zero-amount charge.

Read the full file on GitHub · 146 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -1 lines 313d7faa4dde
  2. 12d ago First seen · 147 lines · 105 tokens per session scan A a5b781a6436c

Subscribe to this mod's changes

fluentcart-payment-gateways is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 105 tokens to every session and 1,365 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

marketplace-purchase-vetting

Use this when the user asks whether a local listing is a scam, "too good to be true," worth looking at, or a good deal. Also use this when he asks you to find options — search/discover candidates, then vet the best ones. The goal is not a generic buying guide; it is a practical risk read with clear next steps.

AtlasOmnia/donna-starter · 72 tokens

saas-billing

Implement and audit SaaS billing systems, subscription state machines, secure webhooks, and local database synchronization / Implementasi dan audit sistem billing SaaS, state machine langganan, webhook aman, dan sinkronisasi database lokal.

roedyrustam/vibes-plug · 51 tokens

payment-gateway-expert

Expert guide for integrating payment gateways (Stripe, PayPal, Xendit, Midtrans, DOKU) and secure webhooks into SaaS platforms / Panduan ahli integrasi payment gateway dan webhook aman.

roedyrustam/vibes-plug · 49 tokens

doku-mcp-server

Expert guide for DOKU Model Context Protocol (MCP) Server integration. Enables AI Agentic Commerce with tools for payment links, Virtual Accounts, QRIS, transaction status checks, and client configuration (Claude Desktop, Cursor, AGY) / Panduan ahli DOKU MCP Server untuk AI Agentic Commerce.

roedyrustam/vibes-plug · 70 tokens

checkout-integration

Guide for starting hosted Checkout Sessions, payment links, and overlay or inline checkout for one-time and recurring products; use subscription-integration for post-checkout lifecycle management.

dodopayments/skills · 37 tokens

refunds-and-disputes

Guide for issuing refunds, handling disputes and chargebacks, and reconciling customer access with Dodo Payments.

dodopayments/skills · 28 tokens