Ejemplo n.º 1
0
def confirm_payment_hook():
    params = flat_multi(request.values)
    order.change_state(params['order_id'], models.states["confirm_pay"])
    return redirect(url_for("orders.list_hook"))
Ejemplo n.º 2
0
def test_done_hook():
    params = flat_multi(request.values)
    order.change_state(params['order_id'], models.states["test_done"])
    return redirect(url_for("orders.list_hook"))
Ejemplo n.º 3
0
def set_cost_hook():
    params = flat_multi(request.values)
    order.set_cost(params['order_id'], params['cost'])
    order.change_state(params['order_id'], models.states["cost_set"])
    return redirect(url_for("orders.list_hook"))