Complex sentence: When a currency is devalued, it is meant to have a positive effect on the balance of payments by decreasing the price of domestic goods relative to foreign goods, causing exports to rise.
Split into simpler sentences: When a currency is devalued it is meant to have a positive effect on the balance of payments. It does so by decreasing the price of domestic goods relative to foreign goods causing exports to rise.