Пример #1
0
    def createOrder(self, params=None):
        """
        If Cart is valid, create an Order from it
        """
        params = params or {}

        data = self.request("%s%s/" % (self.resource_uri, "createOrder"), method="post", post_args=params)
        return Order.findOrCreate(data)
Пример #2
0
    def createOrder(self, params=None):
        """
        If Cart is valid, create an Order from it
        """
        params = params or {}

        data = self.request("%s%s/" % (self.resource_uri, 'createOrder'),
                            method="post",
                            post_args=params)
        return Order.findOrCreate(self._handler, data)
Пример #3
0
 def createOrder(self, params = {}):
     data = self.request("%s%s/" % (self.resource_uri, 'createOrder'), method = "post", post_args = params)
     return Order.findOrCreate(data)