Walmart Inc. has agreed to pay a total penalty of $282 million to settle charges by the U.S. Justice Department and the Securities & Exchange Commission that its Brazilian unit violated the Foreign Corrupt Practices Act.

The retailer will pay more than $144 million to settle charges by the SEC and approximately $138 million to resolve parallel criminal charges by the U.S. Department of Justice, according to court and regulatory filings.

The settlement with the Justice Department was reached on Thursday in a federal court in Virginia.