class PurchaseController extends Controller (View source)

Traits

Illuminate\Foundation\Auth\Access\AuthorizesRequests
Illuminate\Foundation\Bus\DispatchesJobs
Illuminate\Foundation\Validation\ValidatesRequests

Methods

View
getDetails($purchaseId)

Return the purchase details view.

View
getCheckout($itemId)

Return the item checkout view.

View
getPay($purchaseId)

Return the purchase pay view.

View
getDispatched($purchaseId)

Return the purchase dispatched view.

View
getCollectionAddress($purchaseId)

Return the purchase collection address view.

RedirectResponse
postCheckout( Request $request)

Checkout an item.

RedirectResponse
postDispatched( Request $request)

Mark a purchase dispatched.

RedirectResponse
postCollectionAddress( Request $request)

Apply a collection address to a purchase.

static  void
paymentReceived( Purchase $purchase, float $amount)

Register a received amount against a purchase.

static  void
paymentRefunded( Purchase $purchase, float $amount)

Register a refunded amount against a purchase.

static  void
paymentFailed( Purchase $purchase, float $amount)

Register a failed amount against a purchase.

Details

at line 41
View getDetails($purchaseId)

Return the purchase details view.

Parameters

$purchaseId

Return Value

View

at line 63
View getCheckout($itemId)

Return the item checkout view.

Parameters

$itemId

Return Value

View

at line 114
View getPay($purchaseId)

Return the purchase pay view.

Parameters

$purchaseId

Return Value

View

at line 140
View getDispatched($purchaseId)

Return the purchase dispatched view.

Parameters

$purchaseId

Return Value

View

at line 172
View getCollectionAddress($purchaseId)

Return the purchase collection address view.

Parameters

$purchaseId

Return Value

View

at line 206
RedirectResponse postCheckout( Request $request)

Checkout an item.

Parameters

Request $request

Return Value

RedirectResponse

at line 344
RedirectResponse postDispatched( Request $request)

Mark a purchase dispatched.

Parameters

Request $request

Return Value

RedirectResponse

at line 385
RedirectResponse postCollectionAddress( Request $request)

Apply a collection address to a purchase.

Parameters

Request $request

Return Value

RedirectResponse

at line 464
static void paymentReceived( Purchase $purchase, float $amount)

Register a received amount against a purchase.

Parameters

Purchase $purchase
float $amount

Return Value

void

at line 522
static void paymentRefunded( Purchase $purchase, float $amount)

Register a refunded amount against a purchase.

Parameters

Purchase $purchase
float $amount

Return Value

void

at line 547
static void paymentFailed( Purchase $purchase, float $amount)

Register a failed amount against a purchase.

Parameters

Purchase $purchase
float $amount

Return Value

void