użycie expo web browser do płatności
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user