@@ 353-357 (lines=5) @@ | ||
350 | */ |
|
351 | public function createOrder() |
|
352 | { |
|
353 | if ($this->sandbox_mock == self::SANDBOX) { |
|
354 | $this->last_ord_id = uniqid('ORD-'); |
|
355 | } else { |
|
356 | $this->last_ord_id = 'meu_id_pedido'; |
|
357 | } |
|
358 | ||
359 | $order = $this->moip->orders()->setCustomer($this->createCustomer()) |
|
360 | ->addItem('Nome do produto', 1, 'Mais info...', 100000) |
|
@@ 376-380 (lines=5) @@ | ||
373 | */ |
|
374 | public function createMultiorder() |
|
375 | { |
|
376 | if ($this->sandbox_mock == self::SANDBOX) { |
|
377 | $this->last_ord_id = uniqid('MOR-'); |
|
378 | } else { |
|
379 | $this->last_ord_id = 'meu_id_pedido'; |
|
380 | } |
|
381 | ||
382 | $order = $this->moip->orders()->setOwnId(uniqid()) |
|
383 | ->addItem('bicicleta 1', 1, 'sku1', 10000) |