Very hard but possible
I have been trying to buy tickets on Renfe's website for an itinerary in a few weeks. About once every 25 tries, it goes through. I'm using American Visa cards - Capital One and Chase. It is maddening, but all I can say is keep trying. This is the worst website I know for purchasing travel.