Skip to content

Feat/comprehensive api coverage#2

Open
samaasi wants to merge 28 commits into
developfrom
feat/comprehensive-api-coverage
Open

Feat/comprehensive api coverage#2
samaasi wants to merge 28 commits into
developfrom
feat/comprehensive-api-coverage

Conversation

@samaasi

@samaasi samaasi commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Branch Implementation Description: feat/comprehensive-api-coverage

This branch delivers a complete, feature-complete, type-safe Paystack SDK implementation with:

Core Enhancements

  • Zero-dependency query string serializer (qs.ts)
  • Async iterator auto-pagination utility (pagination.ts)
  • Custom logger support in PaystackClient and ApiClient

Expanded API Coverage

  • Transactions: Complete implementation with all endpoints (initialize, verify, fetch, list, listAll (auto-pagination), chargeAuthorization, timeline, totals, export, partialDebit)
  • Customers: Full feature set including fetch, validate, setRiskAction, deactivateAuthorization
  • All other resources fully implemented: Apple Pay, Subaccounts, Subscriptions, Refunds, Transfers, Payment Pages, etc.

Type Safety & Quality

  • Exhaustive PaystackEvent enum for webhooks
  • All TypeScript errors resolved
  • 138 passing tests
  • Formatted with Prettier, linted with ESLint

Framework Integrations

  • Updated Express, Fastify, Next.js, and NestJS integrations
  • Fixed type mismatches in error handling
  • Complete documentation in README

Backward Compatibility

  • Preserved requery() as deprecated alias for fetch() in Transactions

This implementation brings the SDK to full parity with Paystack's API while maintaining modern TypeScript best practices.

samaasi added 28 commits June 17, 2026 16:53
…ook events

- Add transactions.requery() as deprecated alias for fetch()
- Expand PaystackEvent enum with additional webhook events
- All tests passing
- Fix type mismatch in express.ts catch block
- Fix type mismatch in fastify.ts catch block
- Remove unused PaystackEvent import in nestjs.ts
- Fix type mismatch in nestjs.ts catch block
- All resources fully implemented (Transactions, Customers, Apple Pay, Subaccounts, Subscriptions, Refunds, Transfers, Payment Pages, etc.)
- Added comprehensive webhook events enum
- Added custom logger support in PaystackClient
- Added auto-pagination support
- Added zero-dependency query string serializer
- All tests passing (138 tests!)
- TypeScript fixes in integration files
…rtual accounts, and additional payment services
…utes, transfers, and other core Paystack resources
…cation tests for Express, Fastify, and Next.js
…lans, settlements, and payment requests while adding query string utilities
…sfer recipients, settlements, and several other Paystack API modules
…lements, virtual accounts, plans, and update webhook tests
…ers, transfer recipients, and dispute management
…, splits, and virtual accounts with associated types and tests
…ong with Dispute types and webhook testing support
…tify and NestJS webhook integration utilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant