CoolCMS API

ExpressPaymentItemDto
in package

FinalYes

One express-payment box — a single tariff payable by a single premium SMS.

Assembled from a module tariff (Bazaar/Comcat/Discussion/…) and its TariffQuickPrice row for one payment region, so the component itself stays module-agnostic and never touches a module entity.

Table of Contents

Properties

$currency  : object|null
$description  : string|null
$instruction  : string
$name  : string
$notice  : string|null
$phone  : string
$price  : float
$smsText  : string

Methods

__construct()  : mixed
getSmsHref()  : string
`sms:` link — prefills recipient and body on a phone, which is the entire point of "pay with one text message". Desktop browsers ignore an unknown scheme, and the plain text stays visible next to it either way.

Properties

Methods

__construct()

public __construct(string $name, string|null $description, string $instruction, string $smsText, string $phone, float $price, object|null $currency, string|null $notice) : mixed
Parameters
$name : string
$description : string|null
$instruction : string
$smsText : string
$phone : string
$price : float
$currency : object|null
$notice : string|null

getSmsHref()

`sms:` link — prefills recipient and body on a phone, which is the entire point of "pay with one text message". Desktop browsers ignore an unknown scheme, and the plain text stays visible next to it either way.

public getSmsHref() : string
Return values
string
On this page

Search results