Добавлен адаптер к tbank и формирование ссылки на оплату

This commit is contained in:
Раис Юсупалиев
2026-04-12 18:56:41 +03:00
parent ab0b66e1c2
commit 2b201a08be
34 changed files with 1322 additions and 268 deletions
+6 -5
View File
@@ -12,15 +12,16 @@ grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_sec
GET {{base_url}}/v2/orders?cdek_number=10240410458
Authorization: Bearer {{auth_token}}
### 3. Регистрация заказа (тип "доставка", до двери)
POST {{base_url}}/v2/orders
Authorization: Bearer {{auth_token}}
### 3. Инициализация оплаты доставки
POST http://localhost:8000/api/v1/delivery/init-payment
Content-Type: application/json
{
"order_uuid": "order-uuid-1",
"price": 125000,
"type": 2,
"tariff_code": 535,
"comment": "Тестовый заказ",
"comment": "Тестовая оплата доставки",
"sender": {
"name": "Петр Петров",
"email": "sender@example.com",
@@ -58,7 +59,7 @@ Content-Type: application/json
}
> {%
client.global.set("order_uuid", response.body.entity.uuid);
client.global.set("payment_url", response.body.payment_url);
%}
### 5. Список доступных тарифов