@1ngenio/test-ts-npm
v1.2.2
Published
A TypeScript utility library with payment processing capabilities.
Readme
@1ngenio/test-ts-npm
A TypeScript utility library with payment processing capabilities.
Installation
npm install @1ngenio/test-ts-npmUsage
Supports both ES modules and CommonJS:
ES Modules (import)
import { NotchPay } from '@1ngenio/test-ts-npm';
const notchpay = new NotchPay('your-api-key');
const payment = await notchpay.createPayment(100, 'USD');CommonJS (require)
const { NotchPay } = require('@1ngenio/test-ts-npm');
const notchpay = new NotchPay('your-api-key');
const payment = await notchpay.createPayment(100, 'USD');API
NotchPay
Payment processing class.
Constructor
new NotchPay(apiKey: string)- Initialize with API key
Methods
createPayment(amount: number, currency: string): Promise<string>- Create a paymentgetPaymentStatus(paymentId: string): Promise<string>- Get payment statuspayments.create(amount, currency)- Alternative payment creationpayments.getStatus(paymentId)- Alternative status check
