mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add ID to WcGateway
This commit is contained in:
parent
68708607f4
commit
45348788a3
1 changed files with 3 additions and 4 deletions
|
@ -21,9 +21,10 @@ use Psr\Container\ContainerInterface;
|
|||
|
||||
//phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
|
||||
//phpcs:disable Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType
|
||||
class WcGateway extends WcGatewayBase
|
||||
class WcGateway extends \WC_Payment_Gateway
|
||||
{
|
||||
|
||||
public const ID = 'ppcp-gateway';
|
||||
public const CAPTURED_META_KEY = '_ppcp_paypal_captured';
|
||||
public const INTENT_META_KEY = '_ppcp_paypal_intent';
|
||||
public const ORDER_ID_META_KEY = '_ppcp_paypal_order_id';
|
||||
|
@ -42,6 +43,7 @@ class WcGateway extends WcGatewayBase
|
|||
ContainerInterface $config
|
||||
) {
|
||||
|
||||
$this->id = self::ID;
|
||||
$this->orderProcessor = $orderProcessor;
|
||||
$this->authorizedPayments = $authorizedPayments;
|
||||
$this->notice = $notice;
|
||||
|
@ -53,9 +55,6 @@ class WcGateway extends WcGatewayBase
|
|||
'Provide your customers with the PayPal payment system',
|
||||
'woocommerce-paypal-gateway'
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->title = $this->config->has('title') ? $this->config->get('title') : $this->method_title;
|
||||
$this->description = $this->config->has('description') ? $this->config->get('description') : $this->method_description;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue