[insert_php]

global $user_ID; // the wp ID of the currently logged-in user

$customer = new Edd_Customer( $user_ID, true );
$eddCustomerID = $customer->id;
$purchased = edd_has_user_purchased($eddCustomerID, 79);
$paymentIDs = $customer->payment_ids;
$paymentIDs = explode(‘,’, $paymentIDs);

$payment = new EDD_Payment( 7327 );
$paymentDownloads = $payment->downloads;
$first = $paymentDownloads[0];

foreach($paymentDownloads as $x => $x_value) {
echo “Key=” . $x . “, Value=” . $x_value;
echo “
“;
}
//echo $first[2];
//echo implode(‘-‘,$paymentDownloads[0]);

//$payments_array = $payment->array_convert();
//echo implode(‘-‘, ($payment->downloads));
//echo implode(‘-‘, $payments_array);
//echo $payments_array[19];

[/insert_php]