Answer
This is referred to as Istisnaa.
You may accept payment in advance provided the customer knows exactly what
you are going to manufacture for him and the price is agreed upon.
and Allah Ta’ala Knows Best
Mufti Muhammad Kadwa
FATWA DEPT.
CHECKED AND APPROVED: Mufti Ebrahim Desai