setup-chip

$npx mdskill add afu-it/malaysia-payment-gateway/setup-chip

Integrate CHIP Collect payment gateway using official API docs.

  • Set up, build, and debug CHIP Collect payment integrations.
  • Depends on CHIP Collect API, secret key, and Brand ID.
  • Reads official documentation and account setup references for guidance.
  • Provides code examples, endpoint schemas, and integration steps.

SKILL.md

.github/skills/setup-chipView on GitHub ↗
---
name: setup-chip
description: Set up, build, debug, and explain CHIP Collect payment integrations using the official CHIP Collect API documentation. Use when working with CHIP Collect purchases, checkout URLs, payment links, direct post, FPX, DuitNow QR, cards, e-wallets, callbacks, webhooks, signature verification, clients, recurring tokens, subscriptions, pre-authorization, refunds, captures, releases, payment methods, statements, account balance, account turnover, API keys, Brand ID, or CHIP Collect endpoint schemas.
---

# CHIP Collect API

Use this skill for CHIP Collect payment integration work.

## Source

Read `references/chip-collect-docs.md` before giving factual API guidance or writing integration code. It contains all downloaded CHIP Collect markdown pages plus embedded OpenAPI blocks from:

`https://docs.chip-in.asia/chip-collect/overview/introduction`

Read `references/account-setup.md` when user asks how to register, which API keys are needed, where credentials come from, or what dashboard setup is required.

## Core Facts

- Base URL: `https://gate.chip-in.asia/api/v1/`
- Auth: `Authorization: Bearer <secret key>` for every request.
- Credentials: API key and Brand ID come from CHIP Collect Developers pages in portal.
- Amounts: money values are smallest currency units. Example: `price: 100` equals `RM 1.00`.
- Create checkout/payment link flow: `POST /purchases/`, then use response `checkout_url`.
- Payment status options: success callback, `GET /purchases/{id}/`, or webhook events.
- Test cards: `4444 3333 2222 1111` non-3DS, `5555 5555 5555 4444` 3DS, CVC `123`, expiry >= current month/year.
- Callback signature: `X-Signature` is base64 RSA PKCS#1 v1.5 over SHA256 digest of raw request body.
- Success callback public key: `GET /public_key/`; webhook public key: `Webhook.public_key`.

## Lookup Map

- Purchases: create, retrieve, cancel, capture, charge token, refund, release, resend invoice, mark paid.
- Clients: create/list/retrieve/update/delete, recurring token list/retrieve/delete.
- Webhooks: create/list/retrieve/update/delete.
- Payment methods: `GET /payment_methods/`, usually with `brand_id` and `currency`.
- Direct post: intro, card, FPX, DuitNow QR, e-wallet.
- Online flows: payment link, pre-authorization, subscriptions, custom flow.
- Account/reporting: balance, turnover, company statements.

## Working Rules

- Use exact endpoint paths and request fields from reference OpenAPI blocks.
- Preserve trailing slashes on CHIP Collect endpoints as documented.
- For code, keep secrets in env vars and never hard-code API keys or Brand IDs.
- For webhooks/callbacks, require raw request body for signature verification.
- If user asks for latest pricing, legal terms, supported methods, or production portal state, verify live docs first.

More from afu-it/malaysia-payment-gateway

SkillDescription
malaysia-payment-gatewayBuild, debug, review, and explain Malaysia payment gateway integrations. Use when implementing checkout, payment links, hosted payment pages, redirects, callbacks, webhooks, HMAC/signature verification, idempotent settlement, paid-access unlocking, refunds, reconciliation, sandbox/live setup, or provider switching for Malaysian gateways such as CHIP Collect, Curlec/Razorpay, Xendit Malaysia, Bayarcash, BCL Pay, toyyibPay, Billplz, FPX, DuitNow QR, cards, or e-wallets.
setup-bayarcashSet up, build, debug, and explain Bayarcash payment integrations using Bayarcash API docs, Web Impian API docs, Bayarcash PHP SDK, WordPress plugins, Boost.space integration links, and Bayarcash MCP server references. Use when working with Bayarcash API v2/v3, payment intents, FPX banks, DuitNow banks or wallets, portals, payment channels, callbacks/webhooks, checksums, transaction lookups, direct debit/e-Mandate flows, enterprise partner merchant/payout APIs, Laravel/PHP SDK usage, WordPress Bayarcash integrations, or Bayarcash MCP tooling.
setup-bclSet up, build, debug, review, and explain BCL payment gateway, BCL Pay, BCL Payment Link, BCL QR Terminal, BCL Forms, Bayarcash-linked setup, portal keys, transactions, webhooks, direct debit forms, client info, payment redirects, and BCL operating procedures using BCL docs.
setup-billplzSet up, build, debug, review, and explain Billplz payment integrations using Billplz API docs, help center, GitHub plugins, status pages, payment collections, payment forms, Payment Order payouts, X Signature callbacks/redirects, V5 checksums, sandbox/live setup, API Secret Key, Collection ID, and X Signature Key.
setup-curlecSet up, build, debug, review, and explain Razorpay Curlec payment gateway integrations using Curlec and shared Razorpay documentation. Use when working with Curlec/Razorpay Standard Checkout, FPX or redirect payment methods, Orders API, Payments API, Refunds API, Payment Links, Basic Auth API keys, checkout.js options, callback_url, payment signature verification, webhook setup, webhook HMAC validation, sandbox/test mode, payment capture, payment status reconciliation, or Malaysia payment gateway go-live checks.
setup-fiuuSet up, build, debug, review, and explain Fiuu payment integrations using official Fiuu API specs, Seamless Integration, Inpage Checkout, Mobile XDK, SDKs, and shopping cart plugin references. Use when working with Fiuu hosted payment pages, payment requests, vcode/skey verification, Return URL, Notify/Notification URL, Callback URL, IPN ACK/retry behavior, payment status requery, refunds, captures, recurring/token payments, channel status, mobile Flutter/Android/iOS/React Native XDK, JavaScript Seamless Integration, Inpage Checkout, WooCommerce, Magento, OpenCart, WHMCS, Shopify, or Fiuu account/dashboard setup.
setup-hitpaySet up, build, debug, review, and explain HitPay payment integrations using official HitPay docs, Payment Request API, hosted checkout, Drop-In UI, webhooks, HMAC-SHA256 signatures, sandbox/live setup, API keys, webhook salt, payment methods, plugins, refunds, recurring billing, payouts, platform APIs, and status page checks. Use when working with HitPay Malaysia, FPX, DuitNow, Touch 'n Go, cards, e-wallets, QR payments, Payment Links, API checkout, webhook settlement, refunds, or production readiness.
setup-senangpaySet up, build, debug, review, and explain senangPay payment integrations using official senangPay guide pages, Manual Integration API, Direct API, callbacks, return URLs, query status APIs, refund API, sandbox/live setup, Merchant ID, Secret Key, Hash Type, shopping cart plugins, e-commerce integrations, recurring payments, payout API, tokenisation, split settlements, and DOKU migration references. Use when working with senangPay hosted checkout, payment forms, callbacks, SHA256/MD5 hash verification, Direct API client sessions, JavaScript Web SDK, FPX bank lists, refunds, package capabilities, sandbox testing, or senangPay dashboard setup.
setup-stripe-malaysiaSet up, build, debug, review, and explain Stripe payment gateway integrations for Malaysia. Use when working with Stripe Checkout Sessions, Payment Intents, Payment Links, Elements, webhooks, Stripe.js, Stripe CLI, refunds, sandbox/live setup, MYR payments, cards, FPX, GrabPay, and production readiness.
setup-toyyibpaySet up, build, debug, review, and explain toyyibPay payment integrations using official toyyibPay API references, onboarding manuals, DuitNow QR notes, pricing/support pages, WooCommerce plugin notes, and WorkDo setup docs. Use when working with toyyibPay categories, bills, payment links, FPX, cards, DuitNow QR, callbacks, return URLs, MD5 callback verification, transaction lookups, inactive bills, sandbox/live setup, secret keys, category codes, WooCommerce setup, or ToyyibPay settlement checks.