This commit is contained in:
efrilm
2025-10-08 17:06:23 +07:00
parent 1fbacae1f4
commit 290360674f
4 changed files with 114 additions and 5 deletions
@@ -371,8 +371,8 @@ class _PaymentPageState extends State<PaymentPage> {
orElse: () {},
success: (data) {
context.pushReplacement(SuccessPaymentPage(
productQuantity: widget.order.orderItems
?.map(
productQuantity: getOrderItemPending()
.map(
(item) => ProductQuantity(
product: Product(
name: item.productName,
@@ -443,6 +443,7 @@ class _PaymentPageState extends State<PaymentPage> {
final itemPending = widget.order.orderItems
?.where((item) => item.status == "pending")
.toList();
if (widget.isSplit == false) {
final request = PaymentRequestModel(
amount: widget.order.totalAmount ?? 0,