Stripe
extends Controller
in package
Stripe Checkout routes for premium / supporter payments.
Table of Contents
Constants
- ROUTE : mixed = '/stripe'
Methods
- checkoutUrl() : string
- getCancel() : mixed
- getCheckout() : mixed
- getSuccess() : mixed
- postCheckout() : mixed
- postWebhook() : mixed
- Stripe webhook fulfillment.
- routes() : mixed
Constants
ROUTE
public
mixed
ROUTE
= '/stripe'
Methods
checkoutUrl()
public
static checkoutUrl(mixed $CFG) : string
Parameters
- $CFG : mixed
Return values
stringgetCancel()
public
static getCancel(Application $app) : mixed
Parameters
- $app : Application
getCheckout()
public
static getCheckout(Application $app) : mixed
Parameters
- $app : Application
getSuccess()
public
static getSuccess(Application $app, Request $request) : mixed
Parameters
- $app : Application
- $request : Request
postCheckout()
public
static postCheckout(Application $app) : mixed
Parameters
- $app : Application
postWebhook()
Stripe webhook fulfillment.
public
static postWebhook(Application $app) : mixed
Local dev: stripe listen --forward-to https://local.py4e.com/stripe/webhook
Parameters
- $app : Application
routes()
public
static routes(Application $app[, mixed $prefix = self::ROUTE ]) : mixed
Parameters
- $app : Application
- $prefix : mixed = self::ROUTE