Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 64
  • 5 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-gateways

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install c2f-payment-gateways in Claude Code

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

A

No 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 →

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.

c2f-payment-gateways Install

Add to stack

Loading.