Skip to content

Commit

Permalink
simplified data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 20, 2016
1 parent fa18693 commit 6e83ed2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/budy/controllers/api/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ def set_billing_address(self, key):
@appier.ensure(token = "user")
def pay(self, key):
data = appier.request_json()
payment_data = data.get("payment_data", {})
order = budy.Order.get(key = key, rules = False)
order.pay_s(payment_data)
order.pay_s(data)
order = order.reload(
eager = (
"lines",
Expand Down

0 comments on commit 6e83ed2

Please sign in to comment.