Socket
Book a DemoInstallSign in
Socket

tranzilajs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tranzilajs - npm Package Versions

1.0.0

Diff
n
nirto111
published 1.0.0 •

Changelog

Source

[1.0.0] - 2024-08-14 (Initial Release)

Added

  • Core Library Structure

    • Main Tranzila class with comprehensive API client
    • Automatic authentication with HMAC-SHA256 signing
    • Axios interceptors for dynamic header generation
    • Support for both CommonJS and ES Modules
  • Bit Payment Operations

    • Tranzila.Bit.init() - Initialize Bit payments
    • Tranzila.Bit.refund() - Process Bit payment refunds
    • Full type definitions for Bit payment payloads and responses
  • IFrame Integration

    • Tranzila.IFrame.generateLink() - Generate payment links
    • Support for embedded payment forms
    • Customizable success/failure URLs
  • Credit Card Operations

    • Tranzila.CreditCard.refund() - Process credit card refunds
    • Support for various card types and acquirers
    • Comprehensive error handling
  • Standing Orders Management

    • Tranzila.StandingOrders.create() - Create recurring payments
    • Tranzila.StandingOrders.retrieve() - Retrieve standing orders
    • Tranzila.StandingOrders.update() - Update standing order status
    • Support for various charge frequencies and payment plans
  • Transaction Management

    • Tranzila.Transactions.search() - Search and filter transactions
    • Advanced querying with dynamic fields
    • Comprehensive transaction data types
  • Type System

    • Complete TypeScript definitions for all API operations
    • Literal types for constants and enums
    • Union types for flexible field values
    • Generic types for API responses
    • Comprehensive JSDoc documentation
  • Constants and Enums

    • Currency codes (ILS, USD, EUR)
    • Card types and acquirers
    • Payment frequencies and statuses
    • Response codes and languages
    • All constants are type-safe with as const assertions
  • Testing Infrastructure

    • Jest test framework with TypeScript support
    • Comprehensive test suite covering all major functions
    • Mocked API responses for reliable testing
    • Test examples that match actual usage patterns
  • Build System

    • Rollup bundling for multiple module formats
    • TypeScript compilation with declaration generation
    • ES5 compatibility for broad browser support
    • Source maps for debugging
  • Documentation

    • Comprehensive README with usage examples
    • API reference for all methods and types
    • Usage examples in separate directory
    • JSDoc comments throughout the codebase

Technical Features

  • Authentication: Automatic header generation with timestamps, nonces, and HMAC signatures
  • Error Handling: Comprehensive error handling with typed responses
  • Modular Design: Clean separation of concerns with getter-based API organization
  • Type Safety: Full TypeScript support with strict type checking
  • Performance: Optimized bundling and tree-shaking support

Breaking Changes

  • None (initial release)

Dependencies

  • Runtime: axios, crypto-js
  • Development: TypeScript, Jest, Rollup, and related plugins

Development History

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.