API Reference PinStripe v#0.4.0

View Source

Modules

A minimal Stripe SDK for Elixir.

A minimal Stripe API client built on Req.

A custom Plug.Parsers that caches the raw request body for webhook routes.

Automatically generates and caches Stripe API fixtures for testing.

Test mocking utilities for PinStripe, wrapping Req.Test with sensible defaults.

Base controller for handling Stripe webhook events.

Spark DSL for defining webhook handlers.

DSL extension for defining webhook handlers.

Represents a webhook event handler.

Introspection functions for webhook handler DSL.

Transformer that generates handle_event/2 functions and Phoenix controller code for webhook handlers.

Verifies Stripe webhook signatures.

Mix Tasks

Generate a Stripe webhook event handler

Install PinStripe with Stripe webhook support

Detects your Stripe account's API version and updates fixtures accordingly.

Sync webhook handlers with Stripe's configured webhook endpoints

Updates the list of supported Stripe webhook events.