completed first web iteration
This commit is contained in:
@@ -63,12 +63,14 @@ class IntegrationController extends ChangeNotifier {
|
||||
model.status = response['status'];
|
||||
transactionController.updateReceiptData(response);
|
||||
|
||||
gatewayController.poll(transactionController.model.confirmationData['id']);
|
||||
} else {
|
||||
model.status = response['status'];
|
||||
model.errorMessage = response['errorMessage'];
|
||||
_showErrorSnackBar(response['errorMessage']);
|
||||
await gatewayController.poll(transactionController.model.confirmationData['id']);
|
||||
}
|
||||
|
||||
// regardless of poll result we proceed to receipt
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
context.go('/receipt');
|
||||
});
|
||||
|
||||
model.isLoading = false;
|
||||
notifyListeners();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user