fix redirect page

This commit is contained in:
2025-11-23 11:55:01 +02:00
parent f01cc0ff1e
commit 5c366005eb
2 changed files with 4 additions and 4 deletions

View File

@@ -651,6 +651,7 @@ class Cart:
products=order_products products=order_products
) )
print(type(response)) print(type(response))
print(response)
# Extract URL & ntpID from SDK response # Extract URL & ntpID from SDK response
payment_url = response.payment['paymentURL'] payment_url = response.payment['paymentURL']
@@ -665,9 +666,8 @@ class Cart:
self.page.launch_url(payment_url, web_window_name="_blank") self.page.launch_url(payment_url, web_window_name="_blank")
self.page.go("/payment/redirect") # your UX page self.page.go("/payment/redirect") # your UX page
else: else:
self.page.snack_bar = ft.SnackBar(ft.Text("Nu am primit URL-ul de plată.")) self.error_message.text('Nu am primit URL-ul de plată.')
self.page.snack_bar.open = True self.error_message.update()
self.page.update()
def on_confim_btn_click(self, e): def on_confim_btn_click(self, e):
self.error_message.color = ft.Colors.RED self.error_message.color = ft.Colors.RED

View File

@@ -15,7 +15,7 @@ class PaymentRedirect:
alignment=ft.MainAxisAlignment.CENTER alignment=ft.MainAxisAlignment.CENTER
), ),
ft.Text( ft.Text(
"Sunteți redirecționat către pagina de plată NETOPIA...", "Pagina de plată NETOPIA a fost deschisa intr-un tab nou...",
size=20, size=20,
weight=ft.FontWeight.BOLD, weight=ft.FontWeight.BOLD,
text_align=ft.TextAlign.CENTER, text_align=ft.TextAlign.CENTER,