fix: paymentUrls is null (#1786)

* fix: paymentUrls is null

* feat: potential secure storage error
This commit is contained in:
Rafael
2024-11-09 07:20:06 +02:00
committed by GitHub
parent 389c334f10
commit 8e12fb1ad9
3 changed files with 9 additions and 4 deletions
@@ -258,7 +258,11 @@ class CakePayBuyCardDetailPage extends BasePage {
if (!isLogged) {
Navigator.of(context).pushNamed(Routes.cakePayWelcomePage);
} else {
await cakePayPurchaseViewModel.createOrder();
try {
await cakePayPurchaseViewModel.createOrder();
} catch (_) {
await cakePayPurchaseViewModel.cakePayService.logout();
}
}
}