orderpayment
This commit is contained in:
@@ -91,12 +91,33 @@ class ProductRepo {
|
||||
|
||||
return right(productCategory);
|
||||
} on DioException catch (e) {
|
||||
print("djhgfjdfhjg ${e}");
|
||||
|
||||
var error = CustomDioExceptions.handleError(e);
|
||||
return left(error);
|
||||
}
|
||||
}
|
||||
|
||||
FutureResult<ProductCategory> paymentOrder(
|
||||
data) async
|
||||
{
|
||||
try {
|
||||
var response = await _productService.paymentOrder(data);
|
||||
|
||||
ProductCategory productCategory = productCategoryFromJson(response.toString());
|
||||
|
||||
// final String model = response.toString();
|
||||
|
||||
return right(productCategory);
|
||||
} on DioException catch (e) {
|
||||
|
||||
var error = CustomDioExceptions.handleError(e);
|
||||
return left(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
FutureResult<List<Product>> similarProduct(
|
||||
data, BuildContext context, id) async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user