mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
phpcs
This commit is contained in:
parent
3e4665907f
commit
1f64ee32e3
4 changed files with 8 additions and 3 deletions
|
@ -207,7 +207,9 @@ class SmartButton implements SmartButtonInterface
|
|||
{
|
||||
wp_enqueue_style(
|
||||
'ppcp-hosted-fields',
|
||||
$this->moduleUrl . '/assets/css/hosted-fields.css'
|
||||
$this->moduleUrl . '/assets/css/hosted-fields.css',
|
||||
[],
|
||||
1
|
||||
);
|
||||
wp_enqueue_script(
|
||||
'ppcp-smart-button',
|
||||
|
|
|
@ -115,7 +115,8 @@ class OrderProcessor
|
|||
[
|
||||
ThreeDSecure::NO_DECISION,
|
||||
ThreeDSecure::PROCCEED,
|
||||
]
|
||||
],
|
||||
true
|
||||
);
|
||||
return $isApproved;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Inpsyde\PayPalCommerce\Webhooks\Handler;
|
||||
|
||||
|
||||
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGateway;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@ class IncomingWebhookEndpoint
|
|||
$this->logger->log(
|
||||
'error',
|
||||
sprintf(
|
||||
// translators: %s is the error message.
|
||||
__('Illegit Webhook request detected: %s', 'woocommerce-paypal-commerce-gateway'),
|
||||
$exception->getMessage()
|
||||
)
|
||||
|
@ -108,6 +109,7 @@ class IncomingWebhookEndpoint
|
|||
}
|
||||
|
||||
$message = sprintf(
|
||||
// translators: %s is the request type.
|
||||
__('Could not find handler for request type %s', 'woocommerce-paypal-commerce-gateway'),
|
||||
$request['event_type']
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue