African countries have shown interest in developing the legal framework for electronic payment as part of digital law. The article aims to analyze the role of the legal framework for electronic payment in the field of digital economy. It relies on a legal methodology through analyzing legal texts related to electronic payment. It also relies on the comparative and descriptive approaches whenever there is a scientific necessity. The article concluded that the legal framework plays an important role in the field of digital economy. This framework appears in the general rules of civil and commercial laws or through the laws of money and credit. Other laws also play a complementary role, such as criminal law and personal data protection laws.