braintree
Skill13 starsChanged 27 days agoMITView on GitHub
- Reads credentials
- Installs packages
In this repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-lambdaSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- drizzleSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- google-maps-platformSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- linearSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
Never Handle PAN Data: Never write code that receives raw card numbers on the backend.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Braintree Payment Gateway API Skill
Overview
Braintree (by PayPal) provides enterprise payment processing accepting Credit Cards, PayPal, Venmo, Apple Pay, and Google Pay with PCI-compliant Hosted Fields and Drop-in UI.
Installation
npm install braintreeServer Initialization
import braintree, { Environment } from 'braintree';
const gateway = new braintree.BraintreeGateway({
environment:
process.env.NODE_ENV === 'production'
? Environment.Production
: Environment.Sandbox,
merchantId: process.env.BRAINTREE_MERCHANT_ID!,
publicKey: process.env.BRAINTREE_PUBLIC_KEY!,
privateKey: process.env.BRAINTREE_PRIVATE_KEY!,
});Standard Payment Flow
Step 1: Generate Client Token for Frontend
export async function getClientToken(customerId?: string) {
const response = await gateway.clientToken.generate({
customerId: customerId,
});
return response.clientToken;
}Step 2: Charge the Payment Method Nonce
export async function createSaleTransaction(nonce: string, amount: string) {
const result = await gateway.transaction.sale({
amount,
paymentMethodNonce: nonce,
options: {
submitForSettlement: true, // Auto-submit for settlement
},
});
if (result.success) {
return { success: true, transactionId: result.transaction.id };
} else {
throw new Error(result.message);
}
}AI Pitfalls & Anti-Hallucination Guidelines
- Never Handle PAN Data: Never write code that receives raw card numbers on the backend. The frontend must tokenize the card via Braintree Drop-in/Hosted Fields and send only a
paymentMethodNonce. - Settlement Flag: Forgetting
submitForSettlement: trueleaves transactions in an authorized-only state requiring manual capture.
Production Verification Checklist
- Client token generated per checkout session
- 3D Secure 2.0 verification enabled for PSD2 SCA compliance
- Webhook listeners configured for disbursement and dispute notifications
Last Verified: 2026-07-03
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

