neplextech/payments-sdk/payments-sdk-integration

Claude Code and agent skill by neplextech/payments-sdk

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Integrate @payments-sdk/payments and its provider packages into TypeScript applications with typed checkout, verification, returns, and capability-aware flows. Use when adding payment checkout, provider configuration, callbacks, webhooks, settlement handling, or payment error handling.

Install

npx vskill@latest install neplextech/payments-sdk/payments-sdk-integration

SKILL.md

Payments SDK Integration

Integrate the runtime as an application-owned payment boundary. Keep transport, persistence, HTTP routing, settlement, and fulfillment in the host application.

Canonical references

  • Documentation: https://payments.neplex.dev
  • Agent index: https://payments.neplex.dev/llms.txt
  • Full agent documentation: https://payments.neplex.dev/llms-full.txt
  • Installation: https://payments.neplex.dev/docs/installation
  • Quick start: https://payments.neplex.dev/docs/quick-start
  • Provider docs: https://payments.neplex.dev/docs/providers

Read the provider-specific page before configuring gateway options. Provider contracts and gateway details can vary.

Install and configure

Install the scoped runtime and only the providers the application uses:

sh
pnpm add @payments-sdk/payments @payments-sdk/esewa
pnpm add @payments-sdk/payments @payments-sdk/fonepay
pnpm add @payments-sdk/payments @payments-sdk/khalti

Create one configured runtime:

ts
import { createPayments } from '@payments-sdk/payments';
import { fonepay } from '@payments-sdk/fonepay';
const payments = createPayments({
providers: [
fonepay({
merchantCode: process.env.FONEPAY_MERCHANT_CODE!,
secretKey: process.env.FONEPAY_SECRET_KEY!,
fonepayBaseUrl: process.env.FONEPAY_BASE_URL!,
}),
],
});

Provider IDs, provider options, result data, and capability namespaces are inferred from the providers array.

Checkout and verification

Use integer minor units for amount. A checkout result is an action for the application to render or execute:

ts
const checkout = await payments.checkout({
provider: 'fonepay',
amount: 1500_00,
currency: 'NPR',
reference: 'order_123',
providerOptions: {
returnUrl: 'https://merchant.example/payments/fonepay/return',
remarks1: 'Payment for order 123',
},
});

FonePay Dynamic QR is selected with mode: 'dynamic_qr'. Configure the provider's API username and password, then render the returned qr payload and retain the PRN for polling:

ts
const qr = await payments.checkout({
provider: 'fonepay',
amount: 350_00,
currency: 'NPR',
reference: 'order_123',
providerOptions: {
mode: 'dynamic_qr',
remarks1: 'Payment for order 123',
},
});
const status = await payments.verify({
provider: 'fonepay',
reference: 'order_123',
providerOptions: { amount: 350_00 },
});

Verify according to the provider's gateway flow. For FonePay Dynamic QR, poll the PRN status endpoint through payments.verify. For hosted checkout, pass the raw browser return to its signed returns capability:

ts
const returned = await payments.returns.fonepay(request);

The provider checks FonePay's HMAC signature and merchant code. The application still owns reference matching, persistence, idempotency, and fulfillment.

Capability boundaries

  • eSewa implements checkout, verify, and signed browser returns.
  • FonePay implements signed hosted checkout, Dynamic QR checkout with

PRN verification, and signed browser returns.

  • Khalti implements redirect checkout, lookup verification, and

browser return parsing; callback status is not authoritative.

  • The initial providers do not implement webhooks, refunds, or

cancellations.

Keep route registration, raw request handling, persistence, retries, idempotency, settlement transactions, and fulfillment in the application. Pass injected fetch and now when tests or application observability require control.

Never expose provider credentials to browser code or logs. Do not claim success from a redirect, QR display, or callback without verification.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/neplextech/payments-sdk/payments-sdk-integration/badge)](https://verified-skill.com/skills/neplextech/payments-sdk/payments-sdk-integration)

Something wrong with this skill or its page? Tell us.