fix payload
This commit is contained in:
		
							parent
							
								
									9943a83507
								
							
						
					
					
						commit
						24a6df5a3b
					
				|  | @ -50,11 +50,8 @@ final class Index | ||||||
|             foreach ($order->getAllVisibleItems() as $item) { |             foreach ($order->getAllVisibleItems() as $item) { | ||||||
|                 $payload['details'][] = (new Detail($item))->jsonSerialize(); |                 $payload['details'][] = (new Detail($item))->jsonSerialize(); | ||||||
|             } |             } | ||||||
| 
 |  | ||||||
|             $this->_client()->post($this->_config['url'], [ |             $this->_client()->post($this->_config['url'], [ | ||||||
|                 'body' => [ |                 'json' => $payload | ||||||
|                     "magento_2_" . time() => $payload |  | ||||||
|                 ] |  | ||||||
|             ]); |             ]); | ||||||
| 
 | 
 | ||||||
|             return json_encode($payload); |             return json_encode($payload); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue