Anti-poverty programs in developing countries are often difficult to implement; in particular, many governments lack the capacity to deliver payments securely to targeted beneficiaries. We evaluate the impact of biometrically-authenticated payments infrastructure ("Smartcards") on beneficiaries of employment (NREGS) and pension (SSP) programs in the Indian state of Andhra Pradesh, using a large-scale experiment that randomized the rollout of Smartcards over 158 subdistricts and 19 million people. We find that, while far from perfectly implemented, the new system delivered a faster, more predictable, and less corrupt NREGS payments process without adversely affecting program access. For each of these outcomes, treatment group distributions first-order stochastically dominated those of the control group. The investment was cost-effective, as time savings to NREGS beneficiaries alone were equal to the cost of the intervention, and there was also a significant reduction in the "leakage" of funds between the government and beneficiaries. We also find evidence of improvements for pension beneficiaries, but these were typically not significant. Beneficiaries overwhelmingly preferred the new system for both NREGS and SSP programs. Overall, our results suggest that investing in secure payments infrastructure can significantly enhance "state capacity" to implement welfare programs in developing countries.JEL codes: D73, H53, O30, O31