purchase_details library