| @@ -46,15 +46,17 @@ | ||
| 46 | 46 | * |
| 47 | 47 | * @psalm-return 'live'|'test' |
| 48 | 48 | */ |
| 49 | 49 | public static function active_mode() { |
| 50 | - $settings = self::get_settings(); | |
| 51 | - return $settings->settings->test_mode ? 'test' : 'live'; | |
| 50 | + return self::get_settings()->settings->test_mode ? 'test' : 'live'; | |
| 52 | 51 | } |
| 53 | 52 | |
| 54 | 53 | /** |
| 55 | - * Add education about Stripe fees. | |
| 54 | + * Add education about Square fees. | |
| 56 | 55 | * |
| 56 | + * Square is not included in a grandfathered license, so its fees always apply | |
| 57 | + * there even though Stripe fees do not. | |
| 58 | + * | |
| 57 | 59 | * @param string $content UTM Content for the admin upgrade link. |
| 58 | 60 | * @param array|false|string $gateway Gateway or list of gateways this applies to. |
| 59 | 61 | * |
| 60 | 62 | * @return void |
| @@ -59,11 +61,9 @@ | ||
| 59 | 61 | * |
| 60 | 62 | * @return void |
| 61 | 63 | */ |
| 62 | 64 | public static function fee_education( $content = 'tip', $gateway = false ) { |
| 63 | - $license_type = FrmAddonsController::license_type(); | |
| 64 | - | |
| 65 | - if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) { | |
| 65 | + if ( ! FrmAddonsController::payment_fees_apply( 'square' ) ) { | |
| 66 | 66 | return; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $classes = 'frm-light-tip show_square'; |