stripe_mock v0.1.0 API Reference

Modules

StripeMock is a service that duplicates some of the core functionality of the Stripe API, without doing enough to receive a cease-and-desist letter from Stripe's legal team.

Generates a somewhat Stripe-esque random ID string. Pretty much a base52-encoded UUID.

Handles the Stripe-esque pagination.

Defines a Page type for passing data to the views.

This is where we store everything. Obviously, don't call any of these functions yourself.

The entrypoint for defining your web interface, such as controllers, views, channels and so on.

Conveniences for translating and building error messages.

Translates controller action results into valid Plug.Conn responses.

A module providing Internationalization with a gettext-based API.

Pretends to do auth stuff.

Moves params from one key to the other before they hit the changeset functions. For example, %{"customer_id" => customer_id} should be changed to %{"customer" => customer_id} for setting the customer in a way Stripe would expect.

Sets the client IP address in the params via an extremely frowned upon method.

Module with named helpers generated from StripeMockWeb.Router.