refactor: enhance payment handling by adding frontend_address to payment payload and implement PaymentDetailsPage component

This commit is contained in:
hamed
2025-11-18 21:37:05 +03:30
parent df54983fa3
commit 430e0b3b11
3 changed files with 234 additions and 1 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ function Paying({ setStep, appointmentId }) {
const paymentPayload = {
payment_method: selectedBank,
bundle: "appointment",
entity_reference_id: appointmentId
entity_reference_id: appointmentId,
frontend_address: typeof window !== 'undefined' ? window.location.origin : ''
};
const response = await request.postPayment(paymentPayload);