payment with haram
Some checks failed
Build frontend / build (push) Failing after 1m39s

This commit is contained in:
Beilin-b
2026-07-11 05:21:38 -07:00
parent bb47b05858
commit c365503382
2 changed files with 210 additions and 135 deletions

View File

@ -672,17 +672,38 @@ export async function ownerConfirmReservation(id) {
// ─── Payments ───
export async function payDeposit(data) {
const formData = new FormData();
formData.append(
"ReservationId",
String(data.reservationId ?? data.ReservationId ?? "")
);
formData.append(
"PaymentTypeId",
String(data.paymentTypeId ?? data.PaymentTypeId ?? "")
);
if (data.comment) {
formData.append("Comment", data.comment);
} else {
formData.append("Comment", "");
}
// صورة الوصل لطريقة الدفع Haram
if (data.paymentImage) {
formData.append("TransactionType", data.paymentImage);
formData.append("paymentImage", data.paymentImage);
}
return apiFetch("/Reservations/PayDeposit/pay-deposit", {
method: "POST",
body: data,
body: formData,
});
}
export async function getMyTransaction() {
return apiFetch("/Customer/GetMyTransaction");
}
// ─── Owner Contact & Stats ───
export async function getOwnerContactInformation(propertyInformationId) {