aligning logic to backend workflows

This commit is contained in:
2025-10-22 23:17:56 +02:00
parent 8237ed32a7
commit d8e3b88b3e
7 changed files with 151 additions and 25 deletions

View File

@@ -111,11 +111,13 @@ class PayController extends ChangeNotifier {
productUid: model.selectedProduct?.uid,
);
dynamic response = await http.post(
dynamic workflowResponse = await http.post(
'/public/transaction',
transactionController.model.formData,
);
logger.i(response.toString());
logger.i(workflowResponse.toString());
dynamic response = workflowResponse['body'];
if (response['status'] == 'SUCCESS') {
model.status = response['status'];

View File

@@ -73,7 +73,7 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
transactionController.model.formData.creditEmail ?? '';
// Initialize phone number and country code
updatePhoneNumber(transactionController.model.formData.creditPhone ?? '');
// updatePhoneNumber(transactionController.model.formData.creditPhone ?? '');
_controller = AnimationController(
vsync: this,
@@ -296,7 +296,7 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
'Notification Phone Number',
'Debit Phone Number',
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
),
TextButton(