関数
AmazonPay::__construct()
ソース ソース
ファイル: src/AmazonPay.php
public function __construct() {
$cptmc = new CptmClient(
'AAP001',
WCEXAAP_VERSION,
WCEXAAP_PLUGIN_FILE,
'https://api.aivec.co.jp/cptmp/v1/getProvidersList/AAP001'
);
$cptmc->init();
parent::__construct(
Config\Constants::PAYMENT_NAME,
Config\Constants::ACTING,
Config\Constants::ACTING_FLAG,
[
'shipped' => ['once'],
'service' => ['once'],
'data' => ['once'],
],
Config\Constants::AMZ_PAY_SUPPORTED_CURRENCY_CODES,
false,
$cptmc,
true
);
$this->errors = new Errors\GenericErrorStore($this);
$this->errors->populate();
(new IPN\Listener($this))->listen();
(new Hooks())->init();
}