| @@ -66,8 +66,13 @@ | ||
| 66 | 66 | |
| 67 | 67 | if ( $settings ) { |
| 68 | 68 | LP_Meta_Box_Helper::save_fields( $settings, $_POST ); |
| 69 | 69 | } |
| 70 | + | |
| 71 | + if ( 'paypal' === $section ) { | |
| 72 | + // Delete token for case switch live and sandbox | |
| 73 | + delete_option( 'learn_press_' . LP_Gateway_Paypal::PAYPAL_TOKEN ); | |
| 74 | + } | |
| 70 | 75 | } |
| 71 | 76 | |
| 72 | 77 | /** |
| 73 | 78 | * Get name for field |