$post_data = array(
'amount' => $payU_total,
'merchantId' => $merchantId,
'referenceCode' => $reference,
'accountId' => "509171",
'description' => "",
'signature' => $signaturemd5,
'currency' => "ARS",
'buyerEmail' => $order_info['email'],
'lng' => "ARS",
'responseUrl' => $return_url,
'confirmationUrl' => $cancel_url,
'payerFullName' => $order_info['b_firstname'] ." " . $order_info['b_lastname'],
'payerDocument' => "5415668464654",
'payerAddress' => $order_info['b_address'] ." " . $order_info['b_address_2'],
'country' => $order_info['b_country'],
'telephone' => $order_info['phone'],
'shippingAddress' => $order_info['s_address'] . $order_info['s_address_2'],
'billingCity' => $order_info['b_city'],
'shippingCity' => $order_info['s_city'],
'billingCountry' => $order_info['b_country'],
'shippingCountry' => $order_info['s_country'],
'payerEmail' => $order_info['email'],
'payerPhone' => $order_info['phone'],
'payerCity' => $order_info['b_city'],
'payerPostalCode' => $order_info['b_zipcode'],
);
// descompone el array de productos y entrega sus nombres
foreach ($order_info['products'] as $p) {
if (empty($post_data['description'])) {
$post_data['description'] = $p['product'];
} else {
$post_data['description'] .= (',' . $p['product']);
}
}