| @@ -11,9 +11,8 @@ | ||
| 11 | 11 | namespace TUTOR; |
| 12 | 12 | |
| 13 | 13 | use Exception; |
| 14 | 14 | use Tutor\Models\WithdrawModel; |
| 15 | -use Tutor\Traits\JsonResponse; | |
| 16 | 15 | |
| 17 | 16 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | 17 | exit; |
| 19 | 18 | } |
| @@ -23,9 +22,8 @@ | ||
| 23 | 22 | * |
| 24 | 23 | * @since 1.0.0 |
| 25 | 24 | */ |
| 26 | 25 | class Withdraw { |
| 27 | - use JsonResponse; | |
| 28 | 26 | |
| 29 | 27 | /** |
| 30 | 28 | * Withdraw method |
| 31 | 29 | * |
| @@ -253,9 +251,9 @@ | ||
| 253 | 251 | ); |
| 254 | 252 | } |
| 255 | 253 | |
| 256 | 254 | try { |
| 257 | - $withdraw_amount = (float) Input::post( 'amount' ); | |
| 255 | + $withdraw_amount = (float) Input::post( 'tutor_withdraw_amount' ); | |
| 258 | 256 | $earning_summary = WithdrawModel::get_withdraw_summary( $user_id ); |
| 259 | 257 | $min_withdraw = (float) tutor_utils()->get_option( 'min_withdraw_amount' ); |
| 260 | 258 | |
| 261 | 259 | if ( ( $earning_summary->total_pending + $withdraw_amount ) > $earning_summary->available_for_withdraw ) { |