← Questions

Transaction fees from a CSV of payments

0
StripeCodingLast asked Apr 2026

You get payment transactions as a CSV string. Compute the fee for each one and the total fees per user. The rate depends on the payment type and provider and on the transaction's status; later parts add more cases, such as refunds, disputes and several currencies. Ask how each case is charged before you start coding.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding