c2f-payment-gateways
Skill by otavioserra
Guides the implementation, testing and auditing of payment gateways such as Stripe and PayPal in Conn2Flow. It covers server-side pricing, signed order tokens, webhook idempotency and on-demand SDK loading.
Install c2f-payment-gateways
Built from the published package, never by AI.
git clone --depth 1 https://github.com/otavioserra/conn2flow /tmp/conn2flow && mkdir -p ~/.claude/skills && cp -r /tmp/conn2flow/.gemini/skills/c2f-payment-gateways ~/.claude/skills/c2f-payment-gatewaysRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/otavioserra/conn2flow /tmp/conn2flow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/conn2flow/.gemini/skills/c2f-payment-gateways ~/.gemini/antigravity-cli/skills/c2f-payment-gatewaysAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install c2f-payment-gateways in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a set of rules for adding payment gateways to Conn2Flow projects. It says the price, currency, discounts and fees must be set and checked only on the backend, and that the frontend should send only identifiers and quantities. It also describes HMAC order tokens with a per-order salt, and a three-part check of the gateway's metadata, amount and currency before an order is marked as paid.
The skill also covers PayPal capture on the server, webhooks that trigger a resync through the official gateway API, and loading gateway SDKs only when the buyer selects that method. For testing, it describes mocks that avoid real credentials, test cards for Stripe, and PayPal sandbox accounts. It is aimed at developers building or auditing checkout flows in Conn2Flow.
Written from the project's SKILL.md and checked against it.
What it can do
- Server-side pricingReads product prices from the database so the client cannot change them.
- Order token HMACProtects public order links with a per-order salt and a timing-safe comparison.
- Payment verificationChecks the order ID, amount and currency returned by the gateway before accepting payment.
- Backend captureCaptures PayPal orders on the server after the buyer approves them.
- Idempotent webhooksRecords each gateway event ID so repeated webhook deliveries are ignored.
- On-demand SDK loadingLoads Stripe.js or the PayPal SDK only when that payment method is selected.
- Gateway fallbackSets a priority order for choosing the gateway when the buyer makes no selection.
- Tests without credentialsUses test doubles for gateway client classes and sandbox or test-mode cards for E2E tests.
What you need
- A Conn2Flow project
- Stripe test mode or PayPal sandbox account for testing
- Stripe CLI for local webhook simulation
Try asking
- Integra o checkout com Stripe no meu módulo de loja
- Audite o webhook de pagamento para evitar cobranças duplicadas
- Crie um teste do pagamento sem usar credenciais de produção
Good to know
- Written in Portuguese.
- Code examples use PHP and JavaScript and refer to Conn2Flow module conventions.
- Production credentials must never appear in test files, CI variables or logs.
- Direct curl tests of webhooks should be limited to development or staging.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .gemini/skills/c2f-payment-gateways/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to c2f-payment-gateways
All alternatives →Shopify skill that lets an AI assistant set up and run a Shopify store through Shopify's official MCP server. It is for people who want to sell online, start a store, or manage an existing Shopify store.
Guides an AI assistant through building Shopify apps, extensions and themes. It covers the GraphQL Admin API, Shopify CLI, Polaris UI and Liquid. Intended for Shopify developers.
Searches Ticketmaster events and seat listings with pricing for people looking for event tickets. It returns Ticketmaster checkout links but cannot complete a purchase itself.
Analyzes ecommerce SEO for product pages, product schema, Google Shopping visibility, Amazon marketplace signals and keyword gaps. Built for stores, catalogs and product listings. Live Shopping and Amazon data needs the optional DataForSEO Merchant API.
Drafts replies to customer emails and tickets using order, refund, CRM and support desk data, in the owner's writing voice. Refunds and sends need the owner's approval, and with Shopify it also flags orders needing attention.
Reviews generated or changed WooCommerce code before it ships. It is for developers building extensions, payment and shipping integrations, checkout customizations, and order or product logic.
Compare with shopify, shopify-development or ticketmaster
c2f-payment-gateways: common questions
Should the product price come from the frontend in a Conn2Flow checkout?
No. The skill says price, currency, discounts and fees are defined and validated only on the backend, reading from the database.
How does the skill prevent duplicate charges from webhooks?
It records each gateway event ID before processing and ignores events that were already handled. The webhook then triggers a resync through the official gateway API.
Can I test payments without real Stripe or PayPal credentials?
Yes. The skill describes test doubles for the gateway client, Stripe test cards in test mode, and PayPal sandbox accounts for E2E tests.
How do I install c2f-payment-gateways?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is c2f-payment-gateways free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is c2f-payment-gateways safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to c2f-payment-gateways?
Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.
