paystack-inline-ts
v1.0.3
Published
A simple typescript of the existing @paystack/inline-js
Downloads
115
Maintainers
Readme
paystack-inline-ts
A TypeScript wrapper for the Paystack Inline JS library.
Introduction
paystack-inline-ts
is a TypeScript-friendly wrapper around the @paystack/inline-js
library. It provides type definitions and a more robust development experience for TypeScript users who want to integrate Paystack's payment solutions into their projects.
Features
- Full TypeScript support for Paystack Inline JS
- Type definitions for Paystack options and response objects
- Seamless integration with existing TypeScript projects
- Improved IDE autocompletion and type checking
Installation
You can install paystack-inline-ts
using npm:
npm install paystack-inline-ts
Usage
Here's a basic example of how to use paystack-inline-ts
:
import PaystackPop { ResumeTransactionOptions } from 'paystack-inline-ts';
Then you can follow with how things are done in the official documentation
Why Use paystack-inline-ts?
- Type Safety: Catch potential errors at compile-time rather than runtime.
- Better Developer Experience: Enjoy autocompletion and inline documentation in your IDE.
- Easier Integration: Seamlessly integrate Paystack payments into your TypeScript projects.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Acknowledgements
This package is a TypeScript wrapper around the official @paystack/inline-js
library. All credit for the underlying functionality goes to the Paystack team.