This commit is contained in:
2025-11-23 13:39:48 +02:00
parent 6ed0d514c6
commit 2f45a4af2f

View File

@@ -704,9 +704,6 @@ class Cart:
# 2) Show a button that opens the hosted payment page (iOS-safe)
if payment_url:
self.order_btn.visible = False
self.order_btn.update()
self.payment_redirect_button.url = payment_url
self.payment_redirect_button.visible = True
self.payment_redirect_button.text = "Finalizeaza plata"
@@ -750,6 +747,8 @@ class Cart:
if self.payment.value == "plata_online_cu_cardul":
self.error_message.value = "Generam linul de plata, va rugam asteptati!"
self.order_btn.visible = False
self.order_btn.update()
else:
self.error_message.value = "Comanda a fost trimisa cu succes. Va multumim!"
self.error_message.color = ft.Colors.GREEN