Integrate PayPal Subscriptions (WIP)

This commit is contained in:
emilicastells 2023-01-05 14:53:23 +01:00
parent dd3918b146
commit 7774a5e8b0
No known key found for this signature in database
GPG key ID: 1520C07081754570
10 changed files with 226 additions and 19 deletions

View file

@ -94,7 +94,8 @@ return array(
$environment,
$payment_token_repository,
$logger,
$api_shop_country
$api_shop_country,
$container->get( 'api.endpoint.order' )
);
},
'wcgateway.credit-card-gateway' => static function ( ContainerInterface $container ): CreditCardGateway {
@ -668,6 +669,26 @@ return array(
'requirements' => array(),
'gateway' => array( 'paypal', 'dcc' ),
),
'subscription_handler' => array(
'title' => __( 'Subscription handler', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
'default' => false,
'screens' => array(
State::STATE_ONBOARDED,
),
'requirements' => array(),
'gateway' => 'paypal',
),
'subscription_plan_id' => array(
'title' => __( 'Subscription Plan ID', 'woocommerce-paypal-payments' ),
'type' => 'text',
'default' => false,
'screens' => array(
State::STATE_ONBOARDED,
),
'requirements' => array(),
'gateway' => 'paypal',
),
'card_billing_data_mode' => array(
'title' => __( 'Card billing data handling', 'woocommerce-paypal-payments' ),
'type' => 'select',