Cut the San Pedro into pieces, but don't bother to remove the stem or thorns.
Boil some water and add the pieces. Add water every now and then, continuing to cook everything until it turns into a mush (may take several hours). Condense the mush (it doesn't burn easily, but be careful), and...