You are given a CSV-formatted string representing a list of payment transactions. Each row contains fields such as: id, reference, amount, currency, date, merchant_id, buyer_country, transaction_type, payment_provider, and status. Example input: Part 1: Parse the CSV string and, for each transaction, calculate the fee based on the payment_provider (and/or payment_type/status).…