I am not including // in my path.But still i am getting error from firestore that Paths must not contain // in them
onPressed: (){
opencheckout();
setState(() {
_firestore.collection('userss').document(uid)
.collection('OrdersSuccess').add({
"name":product.name,
"original":product.original,
"Quantity":product.Quantity,
"image":product.image,
});
});
};
Debug console Message
E/MethodChannel#plugins.flutter.io/cloud_firestore(12572): java.lang.IllegalArgumentException: Invalid path (userss//OrdersSuccess/Iy4M9nYayqCAk0EcCKEB). Paths must not contain // in them.
E/MethodChannel#plugins.flutter.io/cloud_firestore(12572): at com.google.firebase.firestore.model.ResourcePath.fromString(com.google.firebase:firebase-firestore@@21.3.0:45)