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_boleto_settings', |
| 8 | [ |
| 9 | 'geo_target' => [ |
| 10 | 'description' => __( 'Customer Geography: Brazil', 'woocommerce-gateway-stripe' ), |
| 11 | 'type' => 'title', |
| 12 | ], |
| 13 | 'activation' => [ |
| 14 | 'description' => sprintf( |
| 15 | /* translators: 1) HTML anchor open tag 2) HTML anchor closing tag */ |
| 16 | esc_html__( 'Must be activated from your Stripe Dashboard Settings %1$shere%2$s', 'woocommerce-gateway-stripe' ), |
| 17 | '<a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">', |
| 18 | '</a>' |
| 19 | ), |
| 20 | 'type' => 'title', |
| 21 | ], |
| 22 | 'enabled' => [ |
| 23 | 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
| 24 | 'label' => __( 'Enable Stripe Boleto', 'woocommerce-gateway-stripe' ), |
| 25 | 'type' => 'checkbox', |
| 26 | 'description' => '', |
| 27 | 'default' => 'no', |
| 28 | ], |
| 29 | 'title' => [ |
| 30 | 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
| 31 | 'type' => 'text', |
| 32 | 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
| 33 | 'default' => __( 'Boleto', 'woocommerce-gateway-stripe' ), |
| 34 | 'desc_tip' => true, |
| 35 | ], |
| 36 | 'description' => [ |
| 37 | 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
| 38 | 'type' => 'text', |
| 39 | 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
| 40 | 'default' => __( "You'll be able to download or print the Boleto after checkout.", 'woocommerce-gateway-stripe' ), |
| 41 | 'desc_tip' => true, |
| 42 | ], |
| 43 | 'expiration' => [ |
| 44 | 'title' => __( 'Expiration', 'woocommerce-gateway-stripe' ), |
| 45 | 'type' => 'number', |
| 46 | 'description' => __( 'This controls the expiration in number of days for the voucher.', 'woocommerce-gateway-stripe' ), |
| 47 | 'default' => 3, |
| 48 | 'desc_tip' => true, |
| 49 | ], |
| 50 | 'webhook' => [ |
| 51 | 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
| 52 | 'type' => 'title', |
| 53 | /* translators: webhook URL */ |
| 54 | 'description' => $this->display_admin_settings_webhook_description(), |
| 55 | ], |
| 56 | ] |
| 57 | ); |