Pastry
late Middle English (as a collective term): from paste, influenced by Old French pastaierie .
wiktionary
From Middle English pastre, pastri, from pastree (variant of pasterie, from Old French pastaierie and Medieval Latin pasteria) or paste + -ri (modern paste + -ry).
etymonline
pastry (n.)
mid-15c., "food made with or from paste or having it as a principal ingredient," not originally limited to sweets, from Middle English paste (see paste (n.)) + -ry. Probably influenced by Old French pastoierie "pastry" (Modern French pâtisserie), from pastoier "pastry cook," from paste (see paste (n.)); also borrowed from Medieval Latin pasteria "pastry," from Latin pasta. Specific sense of "small confection made of pastry" is by 1906. Pastry-cook is attested from 1650s.