PurchaseController
class PurchaseController extends Controller (View source)
Traits
Methods
Return the purchase details view.
Return the item checkout view.
Return the purchase pay view.
Return the purchase dispatched view.
Return the purchase collection address view.
Checkout an item.
Mark a purchase dispatched.
Apply a collection address to a purchase.
Register a received amount against a purchase.
Register a refunded amount against a purchase.
Register a failed amount against a purchase.
Details
at line 41
View
getDetails($purchaseId)
Return the purchase details view.
at line 63
View
getCheckout($itemId)
Return the item checkout view.
at line 114
View
getPay($purchaseId)
Return the purchase pay view.
at line 140
View
getDispatched($purchaseId)
Return the purchase dispatched view.
at line 172
View
getCollectionAddress($purchaseId)
Return the purchase collection address view.
at line 206
RedirectResponse
postCheckout(
Request $request)
Checkout an item.
at line 344
RedirectResponse
postDispatched(
Request $request)
Mark a purchase dispatched.
at line 385
RedirectResponse
postCollectionAddress(
Request $request)
Apply a collection address to a purchase.
at line 464
static
void
paymentReceived(
Purchase $purchase,
float $amount)
Register a received amount against a purchase.
at line 522
static
void
paymentRefunded(
Purchase $purchase,
float $amount)
Register a refunded amount against a purchase.
at line 547
static
void
paymentFailed(
Purchase $purchase,
float $amount)
Register a failed amount against a purchase.