| @@ -32,8 +32,11 @@ | ||
| 32 | 32 | // These are called explicitly below the Lite PayPal settings. |
| 33 | 33 | add_filter( 'frm_add_settings_section', 'FrmPayPalLiteSettingsController::add_settings_section', 99 ); |
| 34 | 34 | add_action( 'frm_update_settings', 'FrmPayPalLiteSettingsController::process_form' ); |
| 35 | 35 | |
| 36 | + // Hook into update_option to preserve test_mode when add-on saves | |
| 37 | + add_action( 'update_option_frm_paypal_options', 'FrmPayPalLiteSettingsController::preserve_test_mode_on_update', 10, 2 ); | |
| 38 | + | |
| 36 | 39 | add_filter( 'frm_before_save_payment_action', 'FrmPayPalLiteActionsController::before_save_settings', 20, 2 ); |
| 37 | 40 | |
| 38 | 41 | // Hook into after payment type to render Product Name and Product Type fields. |
| 39 | 42 | add_action( 'frm_payments_settings_recurring_product_info', 'FrmPayPalLiteActionsController::add_paypal_subscription_settings_from_hook' ); |
| @@ -46,9 +49,8 @@ | ||
| 46 | 49 | 'frm_paypal_action_options', |
| 47 | 50 | function ( $options ) { |
| 48 | 51 | // Make actions using the PayPal add-on use the same icon we use in Lite. |
| 49 | 52 | $options['classes'] = 'frmfont frm_paypal_icon'; |
| 50 | - $options['is_beta'] = true; | |
| 51 | 53 | return $options; |
| 52 | 54 | } |
| 53 | 55 | ); |
| 54 | 56 | |
| @@ -80,11 +82,8 @@ | ||
| 80 | 82 | add_action( 'wp_ajax_nopriv_frm_paypal_create_order', 'FrmPayPalLiteAppController::create_order' ); |
| 81 | 83 | |
| 82 | 84 | add_action( 'wp_ajax_frm_paypal_create_subscription', 'FrmPayPalLiteAppController::create_subscription' ); |
| 83 | 85 | add_action( 'wp_ajax_nopriv_frm_paypal_create_subscription', 'FrmPayPalLiteAppController::create_subscription' ); |
| 84 | - | |
| 85 | - add_action( 'wp_ajax_frm_paypal_create_vault_setup_token', 'FrmPayPalLiteAppController::create_vault_setup_token' ); | |
| 86 | - add_action( 'wp_ajax_nopriv_frm_paypal_create_vault_setup_token', 'FrmPayPalLiteAppController::create_vault_setup_token' ); | |
| 87 | 86 | |
| 88 | 87 | add_action( 'wp_ajax_frm_paypal_report_error', 'FrmPayPalLiteAppController::report_error' ); |
| 89 | 88 | add_action( 'wp_ajax_nopriv_frm_paypal_report_error', 'FrmPayPalLiteAppController::report_error' ); |
| 90 | 89 | |