CoolCMS API

PaymentShowTrait

Table of Contents

Methods

actionShow()  : void
renderShow()  : void
isPaymentAccessible()  : bool
May this session/user open the payment page of this payment?

Methods

actionShow()

public actionShow(mixed $slug[, int $payment_id = 0 ]) : void
Parameters
$slug : mixed
$payment_id : int = 0

renderShow()

public renderShow(mixed $slug[, int $payment_id = 0 ]) : void
Parameters
$slug : mixed
$payment_id : int = 0

isPaymentAccessible()

May this session/user open the payment page of this payment?

private isPaymentAccessible(Payment $payment) : bool

An anonymous payment (no user_id) stays deliberately open: anyone with the link may pay it and nothing else can be learned through it. A payment bound to an account is open only to its owner.

Parameters
$payment : Payment
Return values
bool
On this page

Search results