In a frying pan heat some olive oil on low to medium heat. Cook the onions until soft. Now add the white beans, ketchup and smoked paprika. Bring to a simmer for a few minutes just to heat everything up. Season with salt and pepper.
Let the flavors develop for a couple of hours. Serve on a bed of baby spinach.