Added https support for invoice polling

This fixes Amagi Metal's issue.