updated functions file to grab custom content and custom pay types.