swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame] | 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; |
| 4 | } |
| 5 | |
| 6 | return apply_filters( |
| 7 | 'wc_stripe_p24_settings', |
| 8 | [ |
| 9 | 'geo_target' => [ |
| 10 | 'description' => __( 'Customer Geography: Poland', 'woocommerce-gateway-stripe' ), |
| 11 | 'type' => 'title', |
| 12 | ], |
| 13 | 'activation' => [ |
| 14 | 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
| 15 | 'type' => 'title', |
| 16 | ], |
| 17 | 'enabled' => [ |
| 18 | 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
| 19 | 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
| 20 | 'type' => 'checkbox', |
| 21 | 'description' => '', |
| 22 | 'default' => 'no', |
| 23 | ], |
| 24 | 'title' => [ |
| 25 | 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
| 26 | 'type' => 'text', |
| 27 | 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
| 28 | 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
| 29 | 'desc_tip' => true, |
| 30 | ], |
| 31 | 'description' => [ |
| 32 | 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
| 33 | 'type' => 'text', |
| 34 | 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
| 35 | 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
| 36 | 'desc_tip' => true, |
| 37 | ], |
| 38 | 'webhook' => [ |
| 39 | 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
| 40 | 'type' => 'title', |
| 41 | /* translators: webhook URL */ |
| 42 | 'description' => $this->display_admin_settings_webhook_description(), |
| 43 | ], |
| 44 | ] |
| 45 | ); |