mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Integrate PayPal Subscriptions (WIP)
This commit is contained in:
parent
dd3918b146
commit
7774a5e8b0
10 changed files with 226 additions and 19 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue