def populate_credit_card_slip(xml_template, po_line_dict):
    """Populate XML template with credit card slip data using a PO line dict with keys
    that correspond to the element classes in the XML template."""
    for k, v in po_line_dict.items():
        for element in xml_template.findall(f'.//td[@class="{k}"]'):
            element.text = v
    return xml_template