本單元對應的GitHub程式
Step1)編輯accounts\views.py,查詢帳號內的儲值金,是否足以支付訂單,扣儲值金
Step2)編輯order\views.py,新增函式get檢查儲值金是否足夠,使用函式form_valid驅動扣儲值金,函式get_context_data記錄使用者帳號顯示在網頁上
Step3)編輯cart\templates\cart_detail.html最下方新增「結帳」連結
Step4)編輯order\templates\checkout.html,結帳前顯示使用者帳號與儲值金