protected function OnsiteBase::logResponse in Commerce Authorize.Net 8
Writes an API response to the log for debugging.
Parameters
\CommerceGuys\AuthNet\Response\ResponseInterface $response: The API response object.
11 calls to OnsiteBase::logResponse()
- AcceptJs::approvePayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Approves the given payment.
- AcceptJs::createPayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Creates a payment.
- AcceptJs::declinePayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Declines the given payment under review.
- AcceptJs::doCreatePaymentMethod in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Creates the payment method on the gateway.
- AcceptJs::refundPayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Refunds the given payment.
File
- src/
Plugin/ Commerce/ PaymentGateway/ OnsiteBase.php, line 305
Class
- OnsiteBase
- Provides the Authorize.net payment gateway base class.
Namespace
Drupal\commerce_authnet\Plugin\Commerce\PaymentGatewayCode
protected function logResponse(ResponseInterface $response) {
$message = $this
->describeResponse($response);
$level = $response
->getResultCode() === 'Error' ? 'error' : 'info';
$this->logger
->log($level, $message);
}