From bcd64e959712a196296570bd0e72c004d7489d4c Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Mon, 16 Sep 2024 20:36:44 -0700 Subject: [PATCH] feature: add admin setting to stripe general settings --- .../admin/class-give-stripe-admin-settings.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php b/includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php index 039c3aab12..9425faf478 100644 --- a/includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php +++ b/includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php @@ -220,6 +220,16 @@ public function register_settings( $settings ) { 'type' => 'checkbox', ]; + $settings['general'][] = [ + 'name' => esc_html__('Stripe Subscription Pause', 'give'), + 'desc' => esc_html__( + 'Check this option if you would like to allow donors the ability to pause their subscription from the Donor Dashboard.', + 'give' + ), + 'id' => 'stripe_subscription_pause', + 'type' => 'checkbox', + ]; + $settings['general'][] = [ 'name' => esc_html__( 'Stripe Gateway Documentation', 'give' ), 'id' => 'display_settings_general_docs_link',