There's a one way to print the so-called Invoice for Apple Developer Program (ADP) enrollment purchases.
Login your id at https://www.apple.com
On the Top Right Corner, you will see an ICON like a SHOPPING BAG.
Click the icon and choose ORDER.
There you will see the purchase you've made.
For the ADP you will see as Enrollment Complete.
Click on the desired option, and you can see the PAYMENT SUMMARY at the bottom page.
Hope the above helps.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: