Agent skills for implementing Malaysia payment gateway integrations.
SaferSkills independently audited malaysia-payment-gateway (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill to add production-grade payment collection to an app, not only to make a checkout button. Treat payment as a state machine: local intent first, gateway session second, verified server-side settlement last.
Find:
Do not start with provider API calls before local payment records and settlement rules are clear.
Create or reuse a payments table with at least:
iduser_id or customer idproduct or order idamount_originaldiscount_amountamount_paidcurrencyproviderstatusgateway_refgateway_statusgateway_payloadcreated_atupdated_atpaid_atUse pending before calling the gateway. Store gateway id after session/order/purchase creation. Add a unique index on (provider, gateway_ref) where gateway_ref is not null.
Create gateway checkout from a server route. Never expose secret keys. Return only:
Browser redirect is user experience only. Webhook/callback verification must happen server-side with raw body when required.
After verification, fetch current gateway object from provider API when possible. Settle from fetched server-side state, not from client-sent success data alone.
Before marking paid, verify:
MYR.pending or already paid.Then update status to paid, set paid_at, unlock entitlement/order fulfillment, and create referral/reward side effects once.
Use project needs to choose:
If latest provider API details, channel availability, fees, dashboard paths, or webhook event names matter, check official current docs before coding.
Payment integration is done only when:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.