Payment Details Component allows you to print and display the payment details on an invoice.

To add the Payment Details Component to an Invoice, you may follow the steps below:

1. Go to Setup | Classic Email Templates.
2. Select Payment Center Templates from the Folder dropdown. 






3. Select the Invoice Email template.

4. Hit Edit Template then add the following lines of code on line 562.

<!-- Payment Details-->
<apex:outputPanel rendered="{!Relatedto.Total_Paid_Amount__c > 0}">
<c:PaymentDetails invoiceId="{!Relatedto.Id}" />

5. Save then perform multiple payment transactions to an Invoice to check if details are displayed.