クラス
Constants
ソース ソース
ファイル: src/Config/Constants.php
final class Constants
{
const ACTING = 'linepay';
const ACTING_FLAG = 'acting_linepay';
const PAYMENT_NAME = 'LINE Pay';
const ALLOWED_CURRENCIES = ['USD', 'JPY', 'TWD', 'THB'];
const SANDBOX_API = 'https://sandbox-api-pay.line.me';
const LIVE_API = 'https://api-pay.line.me';
const API_VERSION_ROUTE = '/v3/payments';
const REACT_DOM_NODE = 'linepay_app';
const SCRIPTS_GLOBAL_VAR_NAME = 'wcexalp';
const NONCE_KEY = 'wcex_linepay_nonce_key';
const NONCE_NAME = 'wcex_linepay_nonce';
/**
* Prevents instantiation of this class.
*
* @throws Exception // thrown if instantiation is attempted.
*/
private function __construct() {
throw new Exception("Can't create instance of this class");
}
}
- __construct — Prevents instantiation of this class.