[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783ZHQP73M2YV1T7DXYRTPM":3,"skill-same:01M783ZHQP73M2YV1T7DXYRTPM":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M783ZHQP73M2YV1T7DXYRTPM","payment-gateway-integration",null,"Integrates payment processing with Stripe, PayPal, or Square including subscriptions, webhooks, and PCI compliance. Use when implementing checkout flows, recurring billing, or handling refunds and disputes.","aibizmod\u002Faibizmod-service-web","aibizmod","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F295315630?v=4","01M7836CB8EQY701YQ7N88M591","01M7836CBVPZGNSJ8BRP2BT398",0,"MIT","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fpayment-gateway-integration\u002Fskills\u002Fpayment-gateway-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: payment-gateway-integration\ndescription: Integrates payment processing with Stripe, PayPal, or Square including subscriptions, webhooks, and PCI compliance. Use when implementing checkout flows, recurring billing, or handling refunds and disputes.\nlicense: MIT\n---\n\n# Payment Gateway Integration\n\nIntegrate secure payment processing with proper error handling and compliance.\n\n## Stripe Integration (Node.js)\n\n```javascript\nconst stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);\n\nclass PaymentService {\n  async createPaymentIntent(amount, currency, customerId) {\n    return stripe.paymentIntents.create({\n      amount: Math.round(amount * 100), \u002F\u002F Convert to cents\n      currency,\n      customer: customerId,\n      automatic_payment_methods: { enabled: true }\n    });\n  }\n\n  async createSubscription(customerId, priceId) {\n    return stripe.subscriptions.create({\n      customer: customerId,\n      items: [{ price: priceId }],\n      payment_behavior: 'default_incomplete',\n      expand: ['latest_invoice.payment_intent']\n    });\n  }\n\n  async refund(paymentIntentId, amount = null) {\n    const params = { payment_intent: paymentIntentId };\n    if (amount) params.amount = Math.round(amount * 100);\n    return stripe.refunds.create(params);\n  }\n}\n```\n\n## Webhook Handling\n\n```javascript\napp.post('\u002Fwebhooks\u002Fstripe', express.raw({ type: 'application\u002Fjson' }), (req, res) => {\n  const sig = req.headers['stripe-signature'];\n\n  let event;\n  try {\n    event = stripe.webhooks.constructEvent(req.body, sig, process.env.STRIPE_WEBHOOK_SECRET);\n  } catch (err) {\n    return res.status(400).send(`Webhook Error: ${err.message}`);\n  }\n\n  switch (event.type) {\n    case 'payment_intent.succeeded':\n      await handlePaymentSuccess(event.data.object);\n      break;\n    case 'invoice.payment_failed':\n      await handlePaymentFailed(event.data.object);\n      break;\n  }\n\n  res.json({ received: true });\n});\n```\n\n## PayPal Integration\n\nSee [references\u002Fpaypal-integration.md](references\u002Fpaypal-integration.md) for complete PayPal implementation with:\n- Order creation and capture\n- Refund processing\n- Webhook handling\n- Frontend SDK integration\n- Success\u002Fcancel callbacks\n\n## Security Checklist\n\n- [ ] Use official SDK only\n- [ ] Verify webhook signatures\n- [ ] Never log full card numbers\n- [ ] Store minimal payment data\n- [ ] Test in sandbox first\n- [ ] HTTPS for all payment routes\n- [ ] Handle all error cases\n- [ ] Use idempotency keys\n- [ ] Implement retry logic\n\n## Best Practices\n\n**Do:**\n- Use official SDK libraries\n- Verify all webhook signatures\n- Log transaction IDs (not card data)\n- Test in sandbox environment\n- Handle all payment states\n- Implement proper error messages\n\n**Don't:**\n- Process raw card data directly\n- Store sensitive payment info\n- Hardcode API keys\n- Skip webhook signature validation\n- Ignore failed payment events\n- Use test keys in production\n","# Payment Gateway Integration\n\nIntegrate secure payment processing with proper error handling and compliance.\n\n## Stripe Integration (Node.js)\n\n```javascript\nconst stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);\n\nclass PaymentService {\n  async createPaymentIntent(amount, currency, customerId) {\n    return stripe.paymentIntents.create({\n      amount: Math.round(amount * 100), \u002F\u002F Convert to cents\n      currency,\n      customer: customerId,\n      automatic_payment_methods: { enabled: true }\n    });\n  }\n\n  async createSubscription(customerId, priceId) {\n    return stripe.subscriptions.create({\n      customer: customerId,\n      items: [{ price: priceId }],\n      payment_behavior: 'default_incomplete',\n      expand: ['latest_invoice.payment_intent']\n    });\n  }\n\n  async refund(paymentIntentId, amount = null) {\n    const params = { payment_intent: paymentIntentId };\n    if (amount) params.amount = Math.round(amount * 100);\n    return stripe.refunds.create(params);\n  }\n}\n```\n\n## Webhook Handling\n\n```javascript\napp.post('\u002Fwebhooks\u002Fstripe', express.raw({ type: 'application\u002Fjson' }), (req, res) => {\n  const sig = req.headers['stripe-signature'];\n\n  let event;\n  try {\n    event = stripe.webhooks.constructEvent(req.body, sig, process.env.STRIPE_WEBHOOK_SECRET);\n  } catch (err) {\n    return res.status(400).send(`Webhook Error: ${err.message}`);\n  }\n\n  switch (event.type) {\n    case 'payment_intent.succeeded':\n      await handlePaymentSuccess(event.data.object);\n      break;\n    case 'invoice.payment_failed':\n      await handlePaymentFailed(event.data.object);\n      break;\n  }\n\n  res.json({ received: true });\n});\n```\n\n## PayPal Integration\n\nSee [references\u002Fpaypal-integration.md](references\u002Fpaypal-integration.md) for complete PayPal implementation with:\n- Order creation and capture\n- Refund processing\n- Webhook handling\n- Frontend SDK integration\n- Success\u002Fcancel callbacks\n\n## Security Checklist\n\n- [ ] Use official SDK only\n- [ ] Verify webhook signatures\n- [ ] Never log full card numbers\n- [ ] Store minimal payment data\n- [ ] Test in sandbox first\n- [ ] HTTPS for all payment routes\n- [ ] Handle all error cases\n- [ ] Use idempotency keys\n- [ ] Implement retry logic\n\n## Best Practices\n\n**Do:**\n- Use official SDK libraries\n- Verify all webhook signatures\n- Log transaction IDs (not card data)\n- Test in sandbox environment\n- Handle all payment states\n- Implement proper error messages\n\n**Don't:**\n- Process raw card data directly\n- Store sensitive payment info\n- Hardcode API keys\n- Skip webhook signature validation\n- Ignore failed payment events\n- Use test keys in production\n",{"name":5,"license":14,"description":7},"main","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fpayment-gateway-integration\u002Fskills\u002Fpayment-gateway-integration","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill payment-gateway-integration",{"tool":35,"command":36},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill payment-gateway-integration",{"tool":38,"command":39},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill payment-gateway-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fpayment-gateway-integration\u002Fskills\u002Fpayment-gateway-integration\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fpaypal-integration.md","REFERENCE","参考文档",6929,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fpayment-gateway-integration\u002Fskills\u002Fpayment-gateway-integration\u002Freferences\u002Fpaypal-integration.md",[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7846EAPZWCQ8C6G3AAMMR57","{TODO=lowercase-hyphen-case-name}","[TODO: Write comprehensive description in third-person. Start with \"This skill provides...\" or \"This skill should be used when...\"]\n\n[TODO: Add \"Use when\" scenarios - specific situations where Claude should use this skill]\n\n[TODO: Add keywords - technologies, use cases, error messages that should trigger this skill]","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Ftemplates\u002Fskill-skeleton\u002Fskills\u002Fskill-name\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7846A0WGDKJTDPD5QMHQVFV","zustand-state-management","Zustand state management for React with TypeScript. Use for global state, Redux\u002FContext API migration, localStorage persistence, slices pattern, devtools, Next.js SSR, or encountering hydration errors, TypeScript inference issues, persist middleware problems, infinite render loops.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzustand-state-management\u002Fskills\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M78463GGSP9B3JSF146B2MG0","zod","TypeScript-first schema validation and type inference. Use for validating API requests\u002Fresponses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI\u002FAI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies (2kb gzipped).","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzod\u002Fskills\u002Fzod\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7845ZX17SVNNY7EDGPJHSBT","xss-prevention","XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fxss-prevention\u002Fskills\u002Fxss-prevention\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7845ST1H37YHSXWWQ9N0V0S","wordpress-plugin-core","WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7845PTWD5HWSTGP35Q8TFNY","woocommerce-dev-cycle","Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow in WooCommerce projects.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwoocommerce-dev-cycle\u002Fskills\u002Fwoocommerce-dev-cycle\u002FSKILL.md",[],[]]