⚙️ Add Configure button for the Installments feature

This commit is contained in:
Daniel Dudzic 2025-05-23 19:25:38 +02:00
parent 2e710bbed6
commit 526f8944f3
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -329,13 +329,20 @@ class FeaturesDefinition {
) . '</p>',
'enabled' => $this->merchant_capabilities['installments'],
'buttons' => array(
array(
'type' => 'secondary',
'text' => __( 'Configure', 'woocommerce-paypal-payments' ),
'url' => 'https://www.paypal.com/businessmanage/preferences/installmentplan',
'showWhen' => 'enabled',
'class' => 'small-button',
),
array(
'type' => 'secondary',
'text' => __( 'Sign up', 'woocommerce-paypal-payments' ),
'url' => 'https://www.paypal.com/businessmanage/preferences/installmentplan',
'showWhen' => 'disabled',
'class' => 'small-button',
),
)
),
),
);