Bling.Router (bling v0.4.1)
Provides a macro to register the routes for Bling.
Link to this section Summary
Functions
Registers the routes for Bling. Defaults to a prefix of "/billing".
Link to this section Functions
Registers the routes for Bling. Defaults to a prefix of "/billing".
These routes are protected by the Bling.can_manage_billing?
method of your MyApp.Bling
module.
The following routes are registered:
- GET /billing/:customer_type/:customer_id/finalize
- this is used to resolve payment issues, can be used as a stripe redirect or directly with a query string of
?payment_intent=pi_xxx
or?setup_intent=si_xxx
- this is used to resolve payment issues, can be used as a stripe redirect or directly with a query string of
- POST /billing/:customer_type/:customer_id/payment-method
- this is used by the finalize route to update the customers payment method if required