関数
Logger::logApiResponse( Aivec\Welcart\SettlementModules\AmazonPay\Models\Log $log )
決済履歴ログ登録
説明 説明
Inserts record containing meta data of an Amazon Pay API response
- $log
(Log) (必須)
ファイル: src/Models/Logger.php
public function logApiResponse(Log $log) { global $wpdb; $log_table_name = $wpdb->prefix . 'usces_log'; $query = $wpdb->prepare( "INSERT INTO {$log_table_name} (`datetime`, `log`, `log_type`, `log_key`) VALUES (%s, %s, %s, %s)", $log->getTimestamp(), json_encode($log), Log::LOG_TYPE, $log->getChargePermissionId() ); $res = $wpdb->query($query); return $res; }