status != 7) ? 0 : 1; $custom = (int) $transaction->reference; $item = $transaction->items->item[0]; $points = $item->quantity; $price = $item->quantity * ($pagseguro['price'] / 100); mysql_insert('INSERT INTO `znote_pagseguro` VALUES (null, \'' . $transaction->code . '\', ' . $custom . ', \'' . $price . '\', \'' . $points . '\', ' . $transaction->status . ', ' . $completed . ')'); header('Location: shop.php?callback=processing');