użycie expo web browser do płatności

This commit is contained in:
2025-06-10 19:52:22 +02:00
parent 8f72f28566
commit 735801d14a
3 changed files with 63 additions and 50 deletions

View File

@@ -6,12 +6,11 @@ const API_URL = "https://hopp.zikor.pl/api/v1/orders";
export async function createOrder(noticeId, orderType) {
const { token } = useAuthStore.getState();
const headers = token ? { Authorization: `Bearer ${token}` } : {};
const clientId = 1;
try {
const response = await axios.post(
`${API_URL}/add`,
{ clientId: clientId, noticeId: noticeId, orderType: orderType },
{ noticeId: noticeId, orderType: orderType },
{
headers: headers,
}