Change record status: 
Project: 
Introduced in branch: 
8.x-2.x
Description: 

payment_line_items() has been replaced by the payment_line_items_display renderable element.

D7

$pid = 7;
$payment = entity_load_single('payment', $pid);
$build = array(
  '#markup' => payment_line_items($payment),
  '#type' => 'markup',
);

D8

$id = 7;
$payment = entity_load('payment', $id);
$build = array(
  '#payment' => $payment,
  '#type' => 'payment_line_items_display',
);
Impacts: 
Module developers