This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def custom_order_setup(self, request): | |
""" | |
Set order fields that are stored in the session, item_total | |
and total based on the given cart, and copy the cart items | |
to the order. Called in the final step of the checkout process | |
prior to the payment handler being called. | |
Adds tax to the order total. | |
""" | |
self.key = request.session.session_key | |
self.user_id = request.user.id |