feat: refactor payment handling to use direct backend redirect instead of API call

This commit is contained in:
hamed
2026-07-02 17:08:52 +03:30
parent e83a666adb
commit e6b55c6bad
4 changed files with 116 additions and 39 deletions
-2
View File
@@ -60,8 +60,6 @@ export const request = {
}),
postAppointment: (data) => api.post(`api/v1/appointment`, data, { requireAuth: true }),
getMyAppointments: (params) => api.get(`api/v1/appointments/user`, { params, requireAuth: true }),
postAppointmentPayment: (data) =>
api.post(`api/v1/payment/appointment`, data, { requireAuth: true }),
getPaymentConfig: () => api.get(`api/v1/payment/config`, { requireAuth: true }),
getPayment: (uuid) => api.get(`api/v1/payment/${uuid}`, { requireAuth: true }),
getMyPayments: (params) => api.get(`api/v1/my/payments`, { params, requireAuth: true }),