The principle
A paid order and a payment attempt answer different questions. Write down what one row represents before joining two tables. If the report needs one row per order, decide which payment evidence qualifies the order, then reduce payment records to one qualifying row per order before counting. Include a tie-out to the source and check that orders with no payment attempts are dealt with deliberately.
Work through an example
Order A17 has a failed attempt followed by a successful one. Order A18 has one successful attempt. An inner join of orders to all attempts returns three rows, but these represent two paid orders. Filtering to successful attempts fixes this small example. Counting distinct qualifying orders also protects the measure when more than one successful payment record can refer to the same order.