woocommerce-payment-sync

woocommerce-payment-sync is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 30 tokens per session (2,043 once invoked), scanned A, original, MIT.

A guide to connecting WooCommerce, the WordPress online-store system, with payment services and business software. It covers payment webhooks, stock updates, and background jobs.

In plain words
What is it for?
Use it when building WooCommerce payment gateway integrations, REST API connections, payment event handlers, inventory reconciliation, or queued synchronization jobs.
Why use it?
It helps prevent duplicate payments, incorrect stock levels, and slow requests when store data must be synchronized with other systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building WooCommerce payment gateway integrations, REST API connections, payment event handlers, inventory reconciliation, or queued synchronization jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/woocommerce-payment-sync
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 hamzabellouch/agent-skills --skill woocommerce-payment-sync
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, 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 woocommerce-payment-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/woocommerce-payment-sync/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/woocommerce-payment-sync)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/woocommerce-payment-sync"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/woocommerce-payment-sync/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 woocommerce-payment-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/woocommerce-payment-sync"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/woocommerce-payment-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,043 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.00030 $0.02043
Opus 5 $0.00015 $0.01022
Sonnet 5 $0.00006 $0.00409
Haiku 4.5 $0.00003 $0.00204

Measured 7d ago against content hash 8d0a3f14c288, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

woocommerce-payment-sync 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 7d ago.

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.

E-Commerce and Retail Tech/woocommerce-payment-sync/SKILL.md · 219 lines

How it starts

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

WooCommerce Payment & Inventory Synchronization

Overview

This skill provides standards for integrating WordPress / WooCommerce with external payment gateways and ERP systems. It covers custom WooCommerce payment gateway plugin development, REST API v3 client operations, nonces security, inventory reconciliation, and background queue management via Action Scheduler.


1. WooCommerce Integration Principles

  1. Leverage Action Scheduler for Background Jobs: Never run heavy sync logic directly inside HTTP requests or standard WP-Cron (wp_cron()). Use WooCommerce Action Scheduler (as_schedule_single_action) for reliable background processing.
  2. Idempotent Webhook Handlers: Payment webhooks must check existing order metadata (_payment_completed_tx_id) before changing order status to prevent duplicate fulfillments.
  3. WooCommerce High-Performance Order Storage (HPOS): Always use \WC_Order CRUD methods ($order->get_meta(), $order->update_meta_data()) instead of generic WordPress postmeta functions (get_post_meta()) to ensure compatibility with HPOS database tables (wp_wc_orders).
  4. Transaction Locks on Inventory Mutations: Acquire database row locks (SELECT ... FOR UPDATE) or atomic inventory updates (wc_update_product_stock()) to prevent race conditions during flash sales.
  5. Strict API Authentication: Authenticate external REST API requests using Consumer Key / Consumer Secret over HTTPS using HMAC-SHA256 signatures.

2. Integration & Payment Architecture

[ Customer Storefront ] ──(Checkout Form)──▶ [ Custom Payment Gateway Plugin ]
                                                    │
                                                    │ 1. Charge Request
                                                    ▼
[ WooCommerce HPOS Core ] ◀──(Webhook 200 OK)── [ Payment Provider API ]
        │
        │ 2. Trigger Action Scheduler Task
        ▼
[ Action Scheduler Queue ] ──(Background Worker)──▶ [ ERP / Inventory Sync Engine ]

Read the full file on GitHub · 219 lines

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. 7d ago First seen · 219 lines · 30 tokens per session scan A 8d0a3f14c288

Subscribe to this mod's changes

woocommerce-payment-sync is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 2,043 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories