クラス
Fees
Methods for updating/retrieving charges
ソース ソース
ファイル: src/API/Fees.php
class Fees { /** * Updates fees and returns `$_SESSION['usces_entry']['order']` * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return array */ public function updateFees() { $this->setFees(); return (new WelcartEntries())->getOrder(); } /** * Populates $usces_entries var by calling $usces->set_cart_fees() * * @author Evan D Shaw <evandanielshaw@gmail.com> * @global \usc_e_shop $usces * @return void */ public function setFees() { global $usces; if (!isset($_SESSION['usces_member']['ID'])) { $member = []; } else { $member = $_SESSION['usces_member']; } $usces->set_cart_fees($member, $_SESSION['usces_entry']); } }
- setFees — Populates $usces_entries var by calling $usces->set_cart_fees()
- updateFees — Updates fees and returns $_SESSION['usces_entry']['order']