CoolCMS API

ExpressSmsGatewayInterface extends PaymentGatewayInterface

A premium SMS gateway that can receive SMS on one fixed address (`api/system/payment/express-execute`).

Table of Contents

Methods

allowRedirect()  : bool
checkDelivery()  : GatewayCheckResult
checkPayment()  : GatewayCheckResult
createPayment()  : GatewayCreateResult
getExpressKeyword()  : string
Keyword of this web on the aggregator account (first word(s) of every SMS).
getScriptName()  : string
loadPayment()  : Payment|null
loadPaymentFromDelivery()  : Payment|null
sendDeliveryResponse()  : void
verifyNotificationOrigin()  : string|null
Proof that the request comes from the aggregator (shared secret, optional IP allowlist).

Methods

verifyNotificationOrigin()

Proof that the request comes from the aggregator (shared secret, optional IP allowlist).

public verifyNotificationOrigin(PaymentGate $paymentGate, array<string, mixed> $params) : string|null

Null = OK, otherwise the reason of rejection. Fail-closed without a configured secret.

Parameters
$paymentGate : PaymentGate
$params : array<string, mixed>
Return values
string|null
On this page

Search results