^^This^^You need your MD permit in hand. You submit pics of the physical permit when applying in PA. Numbers won't cut it.
You will need to provide front & back pictures of both your driver's license/official ID and your MD HGP with your online application. When you go to pick up your PA permit, you will need to show both items in person.