getOrderStatus method

Future<String> getOrderStatus(
  1. String orderId
)

Get order status

Implementation

Future<String> getOrderStatus(String orderId) async {
  try {
    final order = await getOrder(orderId);
    return order.status ?? '';
  } catch (e) {
    throw Exception('Failed to get order status: $e');
  }
}