aligning logic to backend workflows
This commit is contained in:
@@ -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'];
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user