amount VA

fetchAll();
if (!isset($result[0]->order_id)) {
$response = json_encode(array(
‘code’ => ’14’,
‘message’ => ‘Tagihan yang bisa dibayar tidak ditemukan di ‘.$biller_name
));
echo $response;
exit();
}
$order_id = $result[0]->order_id;
$order = commerce_order_load($order_id);
foreach ($order->commerce_line_items[‘und’] as $line) {
$line_item = commerce_line_item_load($line[‘line_item_id’]);
$product_id = $line_item->commerce_product[‘und’][0][‘product_id’];
}
//Load first product from order line item and fetch author uid
$product_item = commerce_product_load($product_id);
$project = node_load($product_item->field_project[‘und’][0][‘target_id’]);

$totalNominal = commerce_currency_amount_to_decimal($result[0]->amount, ‘IDR’);
print(“

");
print_r( $totalNominal);
print_r( $result);
print("

“);

?>

Scroll to top