You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Запрос выполняется **асинхронно** (`isSync = false`), в query-параметры по умолчанию добавляется **deviceUUID** (и заголовок `X-Customer-IP` для v3). Для неавторизованного сценария используйте `createOrder` или `createUnauthorizedOrder`.
40
+
41
+
```php
42
+
43
+
/* Инициализация SDK */
44
+
45
+
$customer = new \Mindbox\DTO\V3\Requests\CustomerRequestDTO();
46
+
$customer->setEmail('test@test.ru');
47
+
48
+
$order = new \Mindbox\DTO\V3\Requests\OrderCreateRequestDTO();
49
+
$order->setCustomer($customer);
50
+
51
+
/* Формирование состава заказа */
52
+
53
+
try {
54
+
$response = $mindbox->order()
55
+
->createAuthorizedOrder(
56
+
$order, // OrderCreateRequestDTO
57
+
'Website.CreateAuthorizedOrder' // название операции
0 commit comments