for the code you provided above this is what I got after I tried to update the functions.php file
Your PHP code changes were rolled back due to an error on line 88 of file wp-content/themes/lapa/functions.php. Please fix and try saving again.
Uncaught Error: Call to a member function get_total() on string in wp-content/themes/lapa/functions.php:88
Stack trace:
#0 wp-includes/class-wp-hook.php(286): woo_wallet_partial_payment_amount_callback(‘279.00’, ‘NULL’)
#1 wp-includes/plugin.php(203): WP_Hook->apply_filters(‘279.00’, Array)
#2 wp-content/plugins/woo-wallet/includes/class-woo-wallet-frontend.php(444): apply_filters(‘woo_wallet_part…’, ‘279.00’, ‘NULL’)
#3 wp-includes/class-wp-hook.php(286): Woo_Wallet_Frontend->woo_wallet_add_partial_payment_fee(Object(WC_Cart))
#4 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#5 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#6 /home/admin/web/the-originals.in/public