mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix credit card gateway constructor parameters
This commit is contained in:
parent
e36d77fad2
commit
df95276372
2 changed files with 5 additions and 7 deletions
|
@ -93,7 +93,6 @@ return array(
|
|||
$payer_factory = $container->get( 'api.factory.payer' );
|
||||
$order_endpoint = $container->get( 'api.endpoint.order' );
|
||||
$subscription_helper = $container->get( 'subscription.helper' );
|
||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||
$payments_endpoint = $container->get( 'api.endpoint.payments' );
|
||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||
$environment = $container->get( 'onboarding.environment' );
|
||||
|
@ -114,9 +113,8 @@ return array(
|
|||
$order_endpoint,
|
||||
$subscription_helper,
|
||||
$logger,
|
||||
$payments_endpoint,
|
||||
$logger,
|
||||
$environment
|
||||
$environment,
|
||||
$payments_endpoint
|
||||
);
|
||||
},
|
||||
'wcgateway.disabler' => static function ( $container ): DisableGateways {
|
||||
|
|
|
@ -131,8 +131,8 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC {
|
|||
* @param OrderEndpoint $order_endpoint The order endpoint.
|
||||
* @param SubscriptionHelper $subscription_helper The subscription helper.
|
||||
* @param LoggerInterface $logger The logger.
|
||||
* @param PaymentsEndpoint $payments_endpoint The payments endpoint.
|
||||
* @param Environment $environment The environment.
|
||||
* @param PaymentsEndpoint $payments_endpoint The payments endpoint.
|
||||
*/
|
||||
public function __construct(
|
||||
SettingsRenderer $settings_renderer,
|
||||
|
@ -151,8 +151,8 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC {
|
|||
OrderEndpoint $order_endpoint,
|
||||
SubscriptionHelper $subscription_helper,
|
||||
LoggerInterface $logger,
|
||||
PaymentsEndpoint $payments_endpoint,
|
||||
Environment $environment
|
||||
Environment $environment,
|
||||
PaymentsEndpoint $payments_endpoint
|
||||
) {
|
||||
|
||||
$this->id = self::ID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue