PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | square/helpers/FrmSquareLiteAppHelper.php +5 -4 6.30 → trunk View file →
@@ -50,10 +50,13 @@
50 50 return self::get_settings()->settings->test_mode ? 'test' : 'live';
51 51 }
52 52
53 53 /**
54 - * Add education about Stripe fees.
54 + * Add education about Square fees.
55 55 *
56 + * Square is not included in a grandfathered license, so its fees always apply
57 + * there even though Stripe fees do not.
58 + *
56 59 * @param string $content UTM Content for the admin upgrade link.
57 60 * @param array|false|string $gateway Gateway or list of gateways this applies to.
58 61 *
59 62 * @return void
@@ -58,11 +61,9 @@
58 61 *
59 62 * @return void
60 63 */
61 64 public static function fee_education( $content = 'tip', $gateway = false ) {
62 - $license_type = FrmAddonsController::license_type();
63 -
64 - if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) {
65 + if ( ! FrmAddonsController::payment_fees_apply( 'square' ) ) {
65 66 return;
66 67 }
67 68
68 69 $classes = 'frm-light-tip show_square';