getMessage()); } } public static function validate($args) { $errors = []; if (empty($args['source']) && empty($args['payment_method'])) { $errors['source'] = __('Stripe token/payment_method is required', 'fluentform'); } return $errors; } }