payments
Skill2 starsChanged 8 months agoMITView on GitHub
Twilio development skill: payments
7 other projects use a version of this.
Adopted by
Most recently taken up by
- blyatiful1/ultrawebtheir own version, first seen Sep 2, 2026
- silvioventre/lovable-skillstheir own version, first seen Aug 18, 2026
- InovaStack-software/ClaudeSkillstheir own version, first seen Aug 4, 2026
- MartinOlivero/saas-buildertheir own version, first seen Jun 18, 2026
- butterbase-ai/butterbase-skillstheir own version, first seen Jun 10, 2026
- amajorai/skillstheir own version, first seen May 29, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- openai/plugins★ 7.3ksame name
- butterbase-ai/butterbase-skills★ 533same name
- MartinOlivero/saas-builder★ 4same name
- silvioventre/lovable-skills★ 4same name
- amajorai/skills★ 3same name
- blyatiful1/ultraweb★ 1same name
- InovaStack-software/ClaudeSkills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- adversarial-reviewSkill
- agent-connectSkill
- agent-teams-guideSkill
- agent-testingSkill
- android-sdkSkill
- brainstormSkill
- branded-callingSkill
- callbacksSkill
- compliance-regulatorySkill
- conferenceSkill
- context-engineeringSkill
- context-hubSkill
- conversational-intelligenceSkill
- conversation-relay-referenceSkill
- conversation-relaySkill
- conversationrelaySkill
- conversations-v2Skill
- customer-memorySkill
- deepgramSkill
- deep-validationSkill
- elastic-sip-trunkingSkill
- env-doctorSkill
- event-streamsSkill
- getting-startedSkill
- hooks-referenceSkill
- iamSkill
- ios-sdkSkill
- ivr-crawlerSkill
- ivr-migratorSkill
- lookupSkill
- media-streamsSkill
- memory-systemsSkill
- messaging-services-referenceSkill
- messaging-servicesSkill
- messagingSkill
- multi-agent-patternsSkill
- operational-gotchasSkill
- paySkill
- phone-numbersSkill
- proxySkill
- real-time-transcriptionSkill
- recordingsSkill
- segmentSkill
- sendgrid-emailSkill
- sip-byocSkill
- sipSkill
- sync-referenceSkill
- syncSkill
- taskrouter-referenceSkill
- taskrouterSkill
- tdd-workflowSkill
- tool-boundariesSkill
- twilio-cliSkill
- twilio-invariantsSkill
- verify-referenceSkill
- verifySkill
- video-patternsSkill
- videoSkill
- voice-insightsSkill
- voice-referenceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
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
- Distinctive: line 35
When you enable PCI Mode on a Twilio account:
- Distinctive: line 86
REST API: When payment is triggered dynamically during an existing call
- Very specific: line 130
When payment completes (success or failure), Twilio POSTs to the action URL:
- Distinctive: line 177
Test with a small charge
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
name: payments
description: Twilio Pay PCI-compliant payment guide. Use when implementing credit card capture during voice calls, payment processing, <Pay> verb, tokenization, or PCI compliance patterns.
Payments Development Skill
Guide for Twilio Pay — PCI-compliant payment collection during voice calls. Load this skill when implementing credit card capture, payment processing, or PCI compliance patterns.
Quick Decision: Do You Need Twilio Pay?
| Scenario | Use Pay? | Alternative |
| Collect credit card during a call | Yes | — |
| Process ACH/bank account during a call | Yes | — |
| Collect payment info via SMS/web | No | Stripe/payment processor directly |
| Store cards for future charges | Maybe | Pay with tokenType: 'reusable' |
| Accept payments without a voice call | No | Standard payment gateway |
Key insight: Twilio Pay is specifically for collecting payment information during active voice calls via DTMF (touchtone) or speech. It's not a general payment processor — it handles the PCI-compliant capture and tokenization, then you charge through your payment connector.
PCI Mode Warning
PCI Mode is IRREVERSIBLE and ACCOUNT-WIDE.
When you enable PCI Mode on a Twilio account:
- The
<Pay>TwiML verb becomes available - DTMF tones for card numbers are masked in logs
- Recording behavior changes (card digits are silenced)
- This CANNOT be undone
Always use a subaccount for payments development and testing. Never enable PCI Mode on your main account unless you're certain.
# Create a subaccount for payments testing
twilio api:core:accounts:create --friendly-name "Payments Testing"Architecture
TwiML Approach (Serverless Functions)
Caller dials in
↓
Voice webhook → <Say> greeting → <Pay> verb
↓
Twilio prompts for card info via DTMF:
1. Card number (16 digits)
2. Expiration date (MMYY)
3. Security code (3-4 digits)
4. Postal code (5 digits)
↓
statusCallback receives progress events
↓
action URL receives tokenized result
↓
You charge the token via your payment connectorREST API Approach (MCP Tools)
Active call exists (CallSid)
↓
create_payment → initiates DTMF capture
↓
update_payment → capture next field or complete
↓
get_payment → check status and tokenWhen to use which:
- TwiML (
<Pay>verb): When payment is part of a predefined call flow (IVR) - REST API: When payment is triggered dynamically during an existing call
TwiML Pay Verb
Basic Usage
const twiml = new Twilio.twiml.VoiceResponse();
twiml.say('Please enter your credit card information.');
twiml.pay({
paymentConnector: 'Default',
chargeAmount: '29.99',
currency: 'usd',
paymentMethod: 'credit-card',
tokenType: 'one-time',
action: '/pay/payment-complete',
statusCallback: '/pay/payment-status',
});Pay Attributes
| Attribute | Required | Default | Description |
paymentConnector | Yes | — | Payment gateway connector name |
chargeAmount | No | — | Amount to charge (e.g., '29.99') |
currency | No | usd | ISO currency code |
paymentMethod | No | credit-card | credit-card or ach-debit |
tokenType | No | one-time | one-time or reusable |
action | Yes | — | URL receiving payment result |
statusCallback | No | — | URL receiving progress events |
timeout | No | 5 | Seconds to wait for input |
maxAttempts | No | 1 | Retry attempts on failure |
validCardTypes | No | all | Space-separated: visa mastercard amex |
minPostalCodeLength | No | 1 | Minimum postal code digits |
postalCode | No | true | Whether to collect postal code |
securityCode | No | true | Whether to collect CVV |
Action URL Parameters
When payment completes (success or failure), Twilio POSTs to the action URL:
| Parameter | Description |
Result | success, payment-connector-error, caller-interrupted, input-matching-failed, internal-error |
PaymentToken | Tokenized card (use to charge via connector) |
PaymentCardNumber | Last 4 digits only |
PaymentCardType | visa, mastercard, amex, discover, etc. |
ExpirationDate | Card expiration (MMYY) |
PaymentConfirmationCode | From payment connector |
ProfileId | For reusable tokens |
CallSid | The call this payment was on |
Status Callback Parameters
Progress events during DTMF collection:
| Parameter | Description |
Capture | Field being captured: payment-card-number, expiration-date, security-code, postal-code |
Result | Current status |
PaymentSid | Payment session SID (PK prefix) |
ErrorCode | Error code if failed |
ErrorMessage | Error description |
Payment Connectors
Payment connectors bridge Twilio Pay to your payment processor. Configure in Twilio Console.
Supported Processors
| Connector | Type | Notes |
| Stripe | Default | Most common, easiest setup |
| Braintree | — | PayPal ecosystem |
| CardConnect | — | Enterprise |
| Chase Paymentech | — | Enterprise |
| Generic Pay Connector | Custom | For other processors |
Connector Setup
- Console → Voice → Pay Connectors
- Select your processor
- Enter API credentials
- Name it (used in
paymentConnectorattribute) - Test with a small charge
ACH Debit Payments
For bank account payments instead of credit cards:
twiml.pay({
paymentConnector: 'Default',
chargeAmount: '100.00',
paymentMethod: 'ach-debit',
action: '/pay/payment-complete',
});ACH collects:
- Bank routing number (9 digits)
- Bank account number
Common Gotchas
- PCI Mode is irreversible: Cannot stress this enough. Use a subaccount. Test there first. Only enable on production when ready.
- Payment connector must exist: The
paymentConnectorname in TwiML must match an existing connector in your Console. Typo = failure. - Recordings auto-mask card digits: In PCI Mode, call recordings automatically silence DTMF tones during card entry. You don't need to pause recording manually.
chargeAmountis optional: You can tokenize a card without charging. Useful for saving cards for future use withtokenType: 'reusable'.- Action URL is required: Without an
action, you won't receive the payment result. The call will continue but you'll have no token. - DTMF only by default:
<Pay>uses DTMF (touchtone) input. Speech input requires additional configuration and is not available in all regions. maxAttemptsresets the entire flow: On retry, the caller re-enters ALL fields, not just the one that failed.- Test with real cards: Twilio Pay doesn't have test card numbers. Use your payment connector's test mode (e.g., Stripe test mode) for development.
MCP Tools Available
create_payment — Initiate payment capture on active call
update_payment — Complete, cancel, or capture next field
get_payment — Check payment status and token
Function Patterns Available
collect-payment.protected.js — TwiML webhook with <Pay> verb
payment-complete.protected.js — Action URL handler
payment-status.protected.js — Status callback handler
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.

