Check if primary isset to avoid notices
Fix getting payment info for viewing orders