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

View File

@@ -15,7 +15,7 @@ class PaymentRedirect:
alignment=ft.MainAxisAlignment.CENTER
),
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,
weight=ft.FontWeight.BOLD,
text_align=ft.TextAlign.CENTER,