| @@ 288-292 (lines=5) @@ | ||
| 285 | */ |
|
| 286 | public function createOrder() |
|
| 287 | { |
|
| 288 | if ($this->sandbox_mock == self::SANDBOX) { |
|
| 289 | $this->last_ord_id = uniqid('ORD-'); |
|
| 290 | } else { |
|
| 291 | $this->last_ord_id = 'meu_id_pedido'; |
|
| 292 | } |
|
| 293 | ||
| 294 | $order = $this->moip->orders()->setCustomer($this->createCustomer()) |
|
| 295 | ->addItem('Nome do produto', 1, 'Mais info...', 100000) |
|
| @@ 311-315 (lines=5) @@ | ||
| 308 | */ |
|
| 309 | public function createMultiorder() |
|
| 310 | { |
|
| 311 | if ($this->sandbox_mock == self::SANDBOX) { |
|
| 312 | $this->last_ord_id = uniqid('MOR-'); |
|
| 313 | } else { |
|
| 314 | $this->last_ord_id = 'meu_id_pedido'; |
|
| 315 | } |
|
| 316 | ||
| 317 | $order = $this->moip->orders()->setOwnId(uniqid()) |
|
| 318 | ->addItem('bicicleta 1', 1, 'sku1', 10000) |
|