0.1.0 • Published 7 months ago

@antelopejs/stripe v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Stripe

@antelopejs/stripe

npm version License TypeScript

An extensive Stripe payment processing module that implements the Stripe interface for AntelopeJS.

Installation

ajs project modules add @antelopejs/stripe

Interfaces

This module implements the Stripe interface that provides comprehensive payment processing capabilities. The interface is installed separately to maintain modularity and minimize dependencies.

NameInstall command
Stripeajs module imports add stripeDocumentation

Overview

The AntelopeJS Stripe module provides functionality for handling Stripe payment processing:

  • Payment intent creation and management
  • Webhook handling for Stripe events
  • Payment method retrieval
  • Payment monitoring and event watching
  • Cluster-aware payment processing with Redis

Dependencies

This module depends on the following Antelope interfaces:

  • API Interface: Required to handle Stripe webhook events and route them to the appropriate handlers
  • Redis Interface: Used to enable clustering capabilities, allowing payment intent monitoring and watching to work seamlessly across multiple instances

Configuration

The Stripe module can be configured with the following options:

{
  "apiKey": "your_stripe_api_key",
  "webhookSecret": "your_stripe_webhook_secret",
  "endpoint": "stripe"
}

Configuration Details

The module requires the following configuration properties:

  • apiKey: Your Stripe API key for authentication with the Stripe API
  • webhookSecret: Your Stripe webhook signing secret for verifying webhook events
  • endpoint: The base endpoint path for Stripe webhook controller (defaults to 'stripe' if not specified)

Additional configuration properties from the Stripe.js library configuration can also be provided.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

0.1.0

7 months ago

0.0.1

8 months ago