settings->test_mode ? 'test' : 'live'; } /** * Add education about Square fees. * * Square is not included in a grandfathered license, so its fees always apply * there even though Stripe fees do not. * * @param string $content UTM Content for the admin upgrade link. * @param array|false|string $gateway Gateway or list of gateways this applies to. * * @return void */ public static function fee_education( $content = 'tip', $gateway = false ) { if ( ! FrmAddonsController::payment_fees_apply( 'square' ) ) { return; } $classes = 'frm-light-tip show_square'; if ( $gateway && ! array_intersect( (array) $gateway, array( 'square' ) ) ) { $classes .= ' frm_hidden'; } FrmTipsHelper::show_tip( array( 'link' => array( 'campaign' => 'square-fee', 'content' => $content, ), 'tip' => 'Pay as you go pricing: 3% fee per-transaction + Square fees.', 'call' => __( 'Upgrade to save on fees.', 'formidable' ), 'class' => $classes, ), 'p' ); } }