How can I get all orders data from this database ?
This is how I have stored data :
db
.collection('users')
.doc(user?.email)
.collection('orders')
.doc(paymentIntent.id)
.set({
basket: basket,
amount: paymentIntent.amount,
created: paymentIntent.created
})
setSucceeded(true);
setError(null);
setProcessing(false);